core :: Writer :: write_msgpack_ext32
len
data bytesAfter writing the header, clients should write the data bytes.
Require: len >= 0 and <= 0xFFFF_FFFF
# Write the header for an application-specific extension of `len` data bytes
#
# After writing the header, clients should write the data bytes.
#
# Require: `len >= 0 and <= 0xFFFF_FFFF`
fun write_msgpack_ext32(typ, len: Int)
do
assert len >= 0 and len <= 0xFFFF_FFFF
write_byte 0xC9
write_bytes len.to_bytes(n_bytes=4)
write_byte typ
end
lib/msgpack/write.nit:519,2--530,4