MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / skip_value

Function skip_value

nodedb-query/src/msgpack_scan/reader.rs:88–90  ·  view source on GitHub ↗

Advance past the MessagePack value starting at `offset`, returning the offset of the next value. Returns `None` if the buffer is truncated or nesting exceeds `MAX_DEPTH`. This is the performance-critical primitive. It never allocates.

(buf: &[u8], offset: usize)

Source from the content-addressed store, hash-verified

86///
87/// This is the performance-critical primitive. It never allocates.
88pub fn skip_value(buf: &[u8], offset: usize) -> Option<usize> {
89 skip_value_depth(buf, offset, 0)
90}
91
92fn skip_value_depth(buf: &[u8], offset: usize, depth: u16) -> Option<usize> {
93 if depth > MAX_DEPTH {

Callers 15

find_field_by_suffixFunction · 0.85
array_anyFunction · 0.85
extract_fieldFunction · 0.85
build_sidecarFunction · 0.85
merge_fieldsFunction · 0.85
roundtrip_mapFunction · 0.85
buildMethod · 0.85
fuzz_two_byte_patternsFunction · 0.85

Calls 1

skip_value_depthFunction · 0.85