core :: Writer :: write_msgpack_map16
len
key/value pairs, max of 0xFFFF pairsAfter writing the header, clients should write the map data, alternating between keys and values.
Require: len <= 0xFFFF
# Write a map header for `len` key/value pairs, max of 0xFFFF pairs
#
# After writing the header, clients should write the map data, alternating
# between keys and values.
#
# Require: `len <= 0xFFFF`
fun write_msgpack_map16(len: Int)
do
assert len <= 0xFFFF
write_byte 0xDE
write_bytes len.to_bytes(n_bytes=2)
end
lib/msgpack/write.nit:378,2--389,4