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

Function compact_size

nodedb-fts/src/codec/bitpack.rs:185–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183
184 #[test]
185 fn compact_size() {
186 // 128 values with max delta 15 → 4 bits each → 64 bytes data + 3 header.
187 let values = vec![15u32; 128];
188 let packed = pack(&values);
189 assert_eq!(packed.len(), 3 + 64);
190 }
191}

Callers

nothing calls this directly

Calls 1

packFunction · 0.85

Tested by

no test coverage detected