summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-01 17:06:19 +0200
committerEdoardo La Greca2025-08-01 17:06:19 +0200
commit309c5c1a8e43a7504978e434a7c3bd82c51748ff (patch)
treef9f0d7de5ce54924de55fea8435788e1387be651 /src
parent4eb2a48b6566f65bc2576c7cb4b2e3db9c816651 (diff)
add todo and fix documentation for writeInteger
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/NinePMessage.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/NinePMessage.kt b/src/main/kotlin/NinePMessage.kt
index 225ec45..1d77807 100644
--- a/src/main/kotlin/NinePMessage.kt
+++ b/src/main/kotlin/NinePMessage.kt
@@ -52,13 +52,14 @@ class NinePMessage(val type: NinePMessageType, val tag: UShort, val fieldNames:
}
}
+ // TODO: Add size that the value is required to fit in
/**
* Write an integer number to the connection.
*
* In 9P, binary numbers (non-textual) are specified in little-endian order (least significant byte first).
*
* @param npt The networking API.
- * @param value The number's value. [SizedMessageField] defines both its actual value and its size.
+ * @param value The number's value.
*/
private fun writeInteger(npt: NetworkPacketTransporter, value: BigInteger) {
val bytes = value.toByteArray()