Expand description
Encoding and decoding functions
This module provides the core serialization functions for the wire format. Primary format is MessagePack (via rmp-serde) for performance, with JSON wrappers for debugging and external tool interoperability.
Functionsยง
- decode
- Decode an envelope from binary format (MessagePack)
- decode_
message - Decode any deserializable value from MessagePack bytes.
- encode
- Encode an envelope to binary format (MessagePack)
- encode_
message - Encode any serializable value to MessagePack bytes.
- encoded_
size - Get the size of an encoded envelope in bytes
- from_
json - Parse an envelope from JSON
- from_
json_ string - Decode from JSON string
- to_json
- Convert an envelope to JSON (for debugging/external tools)
- to_
json_ string - Encode to JSON string
- to_
json_ string_ pretty - Encode to pretty JSON string (for debugging)