Expand description

Logo by Misiasart
Thanks to all individual and corporate sponsors, without whom this work could not exist:
Provides MessagePack serialization and deserialization for Facet types.
§License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Enums§
- Decode
Error - Errors that can occur during MessagePack encoding/decoding operations
Constants§
- MSGPACK_
ARRA Y16 - Array format family - Represents arrays of arbitrary values Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-array
- MSGPACK_
ARRA Y32 - Array format for arrays with between 2^16 and 2^32-1 elements (0xdd)
- MSGPACK_
BIN8 - Binary format family - Represents byte arrays Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-bin
- MSGPACK_
BIN16 - Binary format for arrays between 2^8 and 2^16-1 bytes (0xc5)
- MSGPACK_
BIN32 - Binary format for arrays between 2^16 and 2^32-1 bytes (0xc6)
- MSGPACK_
EXT8 - Extension format family - Represents custom type information with byte arrays Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-ext
- MSGPACK_
EXT16 - Extension format for data between 2^8 and 2^16-1 bytes (0xc8)
- MSGPACK_
EXT32 - Extension format for data between 2^16 and 2^32-1 bytes (0xc9)
- MSGPACK_
FALSE - Boolean format family - Represents true/false values Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-bool
- MSGPACK_
FIXARRAY_ MAX - Maximum value for fixarray format (0x9f, allowing arrays up to 15 elements)
- MSGPACK_
FIXARRAY_ MIN - Fixarray format family - Represents arrays with up to 15 elements in a compact format The first 4 bits are 1001, and the remaining 4 bits store the length Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-array
- MSGPACK_
FIXEX T1 - Fixed-size extension format family - Represents custom type information with fixed-size byte arrays Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-ext
- MSGPACK_
FIXEX T2 - Fixed-size 2-byte extension format (0xd5)
- MSGPACK_
FIXEX T4 - Fixed-size 4-byte extension format (0xd6)
- MSGPACK_
FIXEX T8 - Fixed-size 8-byte extension format (0xd7)
- MSGPACK_
FIXEX T16 - Fixed-size 16-byte extension format (0xd8)
- MSGPACK_
FIXMAP_ MAX - Maximum value for fixmap format (0x8f, allowing maps up to 15 key-value pairs)
- MSGPACK_
FIXMAP_ MIN - Fixmap format family - Represents maps with up to 15 key-value pairs in a compact format The first 4 bits are 1000, and the remaining 4 bits store the length Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-map
- MSGPACK_
FIXSTR_ MAX - Maximum value for fixstr format (0xbf, allowing strings up to 31 bytes)
- MSGPACK_
FIXSTR_ MIN - Fixstr format family - Represents strings up to 31 bytes in a compact format The first 3 bits are 101, and the remaining 5 bits store the length Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-str
- MSGPACK_
FLOA T32 - Float format family - Represents IEEE 754 floating point numbers Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-float
- MSGPACK_
FLOA T64 - Double precision floating point number format (0xcb)
- MSGPACK_
INT8 - Signed integer format family - Represents signed integers Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#int-format-family
- MSGPACK_
INT16 - 16-bit signed integer format (0xd1)
- MSGPACK_
INT32 - 32-bit signed integer format (0xd2)
- MSGPACK_
INT64 - 64-bit signed integer format (0xd3)
- MSGPACK_
MAP16 - Map format family - Represents key-value maps Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-map
- MSGPACK_
MAP32 - Map format for maps with between 2^16 and 2^32-1 key-value pairs (0xdf)
- MSGPACK_
NEGFIXINT_ MAX - Maximum value for negative fixint format (-0x01 = -1)
- MSGPACK_
NEGFIXINT_ MIN - Negative fixint format family - Represents negative integers from -1 to -32 in a single byte The first 3 bits are 111, and the remaining 5 bits store the absolute value minus 1 Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#int-format-family
- MSGPACK_
NIL - MessagePack type tags As defined in the MessagePack specification: https://github.com/msgpack/msgpack/blob/master/spec.md Nil format - Represents nil/null values Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-nil
- MSGPACK_
POSFIXINT_ MAX - Maximum value for positive fixint format (0x7f = 127)
- MSGPACK_
POSFIXINT_ MIN - Positive fixint format family - Represents positive integers from 0 to 127 in a single byte The first bit is 0, and the remaining 7 bits store the value Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#int-format-family
- MSGPACK_
STR8 - String format family - Represents UTF-8 string Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#formats-str
- MSGPACK_
STR16 - String format for strings between 2^8 and 2^16-1 bytes (0xda)
- MSGPACK_
STR32 - String format for strings between 2^16 and 2^32-1 bytes (0xdb)
- MSGPACK_
TRUE - Boolean true value in MessagePack format (0xc3)
- MSGPACK_
UINT8 - Unsigned integer format family - Represents unsigned integers Ref: https://github.com/msgpack/msgpack/blob/master/spec.md#int-format-family
- MSGPACK_
UINT16 - 16-bit unsigned integer format (0xcd)
- MSGPACK_
UINT32 - 32-bit unsigned integer format (0xce)
- MSGPACK_
UINT64 - 64-bit unsigned integer format (0xcf)
Functions§
- from_
slice - Deserializes MessagePack-encoded data into a type that implements
Facet
. - from_
slice_ value - Deserializes MessagePack-encoded data into a Facet value.
- from_
str Deprecated - Alias for from_slice for backward compatibility
- to_vec
- Serializes any Facet type to MessagePack bytes