Skip to main content

encode_v2

Function encode_v2 

Source
pub fn encode_v2(state: &Value) -> Result<Vec<u8>, StateError>
Expand description

Encode a state snapshot as a complete v2 frame: a 4-byte big-endian length followed by the msgpack body {"v": STATE_WIRE_VERSION, "s": state}.