From 309c5c1a8e43a7504978e434a7c3bd82c51748ff Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Fri, 1 Aug 2025 17:06:19 +0200 Subject: add todo and fix documentation for writeInteger --- src/main/kotlin/NinePMessage.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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() -- cgit v1.2.3