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, strings, and instant ext (fixext8 type 1 / 2 → Value::DateTime / Value::NaiveDateTime). For complex types (array, map, bin, other ext), returns None — caller should use json_from_msgpack for those.