Update StandardCodec documentation with double alignment (#58456)

This commit is contained in:
Robert Ancell
2020-06-04 10:08:01 +12:00
committed by GitHub
parent 82acf02d2c
commit 0b7a08c4f6

View File

@@ -243,7 +243,8 @@ class StandardMessageCodec implements MessageCodec<dynamic> {
// * 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.