MessagePack Formats
MessagePack defines format families for each value category. The first byte identifies the format. Small values like integers 0-127 and short strings encode in a single prefix byte.
8
Families
Integer
MessagePack integer formats cover the full signed/unsigned 64-bit integer range.
0x00-0x7f0xe0-0xff0xcc+7 more
Nil and Boolean
MessagePack nil (null), false, and true each encode as a single byte.
0xc00xc20xc3
Float
MessagePack float formats encode IEEE 754 floating-point numbers.
0xca0xcb
String
MessagePack string formats encode UTF-8 text.
0xa0-0xbf0xd90xda+1 more
Binary
MessagePack binary (bin) formats encode raw byte sequences without any UTF-8 requirement.
0xc40xc50xc6
Array
MessagePack array formats encode ordered sequences.
0x90-0x9f0xdc0xdd
Map
MessagePack map formats encode key-value pairs.
0x80-0x8f0xde0xdf
Extension
MessagePack extension formats allow applications to define custom type codes (type -128 to 127).
0xd40xd50xd6+5 more