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

Function count_map_entries

nodedb/src/data/executor/handlers/join/mod.rs:49–51  ·  view source on GitHub ↗

Count entries in a msgpack map.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

47
48/// Count entries in a msgpack map.
49fn count_map_entries(bytes: &[u8]) -> usize {
50 msgpack_scan::map_header(bytes, 0).map_or(0, |(count, _)| count)
51}
52
53/// Write a msgpack map header.
54pub fn write_map_header(buf: &mut Vec<u8>, len: usize) {

Callers 1

merge_join_docs_binaryFunction · 0.85

Calls 1

map_headerFunction · 0.85

Tested by

no test coverage detected