Expand description
Field extraction from raw MessagePack maps.
Given a &[u8] containing a MessagePack map, extract the byte range
of a value for a given key — without allocating or decoding.
Functions§
- extract_
dot_ path - Extract a value using a dot-separated path string (e.g.,
"address.city"). Convenience wrapper overextract_path. - extract_
field - Locate the value for
fieldin a MessagePack map starting atoffset. Returns the byte range(value_start, value_end)of the matched value. - extract_
path - Extract a value at a nested path (e.g.,
["address", "city"]). Each segment must be a string key in a nested map.
Type Aliases§
- Field
Range - A byte range
(start, end)within a MessagePack buffer, pointing to a complete value (tag + payload). Useread_f64,read_i64,read_stretc. withrange.0as the offset to decode the value.