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

Method len

nodedb-query/src/msgpack_scan/index.rs:103–108  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

101 /// Number of indexed fields.
102 #[inline]
103 pub fn len(&self) -> usize {
104 match &self.inner {
105 IndexInner::Flat(entries) => entries.len(),
106 IndexInner::Map(map) => map.len(),
107 }
108 }
109
110 /// Whether the index is empty.
111 #[inline]

Callers 15

eval_geo_functionFunction · 0.45
geo_linestring_lengthFunction · 0.45
geo_polygon_perimeterFunction · 0.45
count_pointsFunction · 0.45
chunk_by_charactersFunction · 0.45
split_sentencesFunction · 0.45
avx512_sum_i64_innerFunction · 0.45
avx512_sum_i64Function · 0.45
avx512_min_i64_innerFunction · 0.45
avx512_min_i64Function · 0.45
avx512_max_i64_innerFunction · 0.45
avx512_max_i64Function · 0.45

Calls

no outgoing calls

Tested by 6

fuzz_truncated_buffersFunction · 0.36
fuzz_truncated_buffersFunction · 0.36
fuzz_random_payloadsFunction · 0.36