Skip to main content

read_value

Function read_value 

Source
pub fn read_value(buf: &[u8], offset: usize) -> Option<Value>
Expand description

Read a scalar msgpack value at offset into nodedb_types::Value.

Handles null, bool, integers, floats, and strings. For complex types (array, map, bin, ext), returns None — caller should use json_from_msgpack for those.