Skip to main content

Module reader

Module reader 

Source
Expand description

Msgpack → serde_json::Value and nodedb_types::Value readers.

The JSON reader walks the crate’s own Cursor. The native reader is generic over zerompk::Read and is shared with NativeCell. Both are deterministic raw byte parsers — the first byte of each msgpack value unambiguously identifies its type per the msgpack specification.

Re-exports§

pub use json::json_from_msgpack;
pub use native::value_from_msgpack;

Modules§

cursor
Byte cursor shared by the msgpack readers and the JSON transcoder.
json
Msgpack → serde_json::Value reader.
native
Msgpack → nodedb_types::Value reader.