Sha256: a528c70a85684cc00161206a7a0ddd142d3608fe3ca41230ac6c1c85d509d165
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
## Enc The Enc type is nearly identical to the Str type from the MessagePack spec but has a flag for specifying an encoding other than UTF-8. ### Format Specification #### Enc8 For serializing text up to (2^8)-1 bytes. ``` +--------+--------+--------+========+ | 0xc7 |XXXXXXXX| type | data | +--------+--------+--------+========+ => XXXXXXXX - a 8-bit unsigned integer which represents the legth of data. => type - encoding flag, a signed 8-bit signed integer ``` #### Enc16 For serializing text up to (2^16)-1 bytes. ``` +--------+--------+--------+--------+========+ | 0xc8 |YYYYYYYY|YYYYYYYY| type | data | +--------+--------+--------+--------+========+ => YYYYYYYY_YYYYYYYY - a 16-bit big-endian unsigned integer which represents the legth of data. => type - encoding flag, a signed 8-bit signed integer ``` #### Enc32 For serializing text up to (2^32)-1 bytes. ``` +--------+--------+--------+--------+--------+--------+========+ | 0xc9 |ZZZZZZZZ|ZZZZZZZZ|ZZZZZZZZ|ZZZZZZZZ| type | data | +--------+--------+--------+--------+--------+--------+========+ => ZZZZZZZZ_ZZZZZZZZ_ZZZZZZZZ_ZZZZZZZZ - a big-endian 32-bit unsigned integer which represents the legth of data. => type - encoding flag, a signed 8-bit signed integer ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mochilo-2.0 | docs/format-spec.md |