diff options
author | Edoardo La Greca | 2025-08-01 17:06:19 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-01 17:06:19 +0200 |
commit | 309c5c1a8e43a7504978e434a7c3bd82c51748ff (patch) | |
tree | f9f0d7de5ce54924de55fea8435788e1387be651 /src/main/kotlin | |
parent | 4eb2a48b6566f65bc2576c7cb4b2e3db9c816651 (diff) |
add todo and fix documentation for writeInteger
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/NinePMessage.kt | 3 |
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() |