createByteWriter
Creates a growable buffer to encode binary formats: the counterpart of createByteReader, with the same types, byte orders and varints.
Available since v3.1.8
Import
Section titled “Import”Signature
Section titled “Signature”Returns
Section titled “Returns”ByteWriter — An empty ByteWriter
Examples
Section titled “Examples”Encode a small binary record
Section titled “Encode a small binary record”Writes chain, and toBytes returns the result.
Choose the byte order
Section titled “Choose the byte order”Multi-byte values are big-endian unless you say little.
Related Types
Section titled “Related Types”ByteWriter
Section titled “ByteWriter”A writer created by createByteWriter. Every write* method returns the writer, to
chain, and throws a RangeError for a value outside the range of its type.
