From 0b7a08c4f6d3d2a5c0b7808d6ea213c0b0249b2f Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Thu, 4 Jun 2020 10:08:01 +1200 Subject: [PATCH] Update StandardCodec documentation with double alignment (#58456) --- packages/flutter/lib/src/services/message_codecs.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/services/message_codecs.dart b/packages/flutter/lib/src/services/message_codecs.dart index 2c13b1d283..031d2a5bb9 100644 --- a/packages/flutter/lib/src/services/message_codecs.dart +++ b/packages/flutter/lib/src/services/message_codecs.dart @@ -243,7 +243,8 @@ class StandardMessageCodec implements MessageCodec { // * Larger integers are encoded using 8 bytes two's complement // representation. // * doubles are encoded using the IEEE 754 64-bit double-precision binary - // format. + // format. Zero bytes are added before the encoded double value to align it + // to a 64 bit boundary in the full message. // * Strings are encoded using their UTF-8 representation. First the length // of that in bytes is encoded using the expanding format, then follows the // UTF-8 encoding itself.