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

Function value_bytes_are_null

nodedb-query/src/msgpack_scan/aggregate.rs:409–411  ·  view source on GitHub ↗

Check if msgpack bytes represent null. Msgpack null is the single byte 0xc0.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

407
408/// Check if msgpack bytes represent null. Msgpack null is the single byte 0xc0.
409fn value_bytes_are_null(bytes: &[u8]) -> bool {
410 bytes == [0xc0]
411}
412
413/// FNV-1a hash for raw bytes (used by approx aggregates to feed HLL/SpaceSaving).
414fn hash_bytes(bytes: &[u8]) -> u64 {

Callers 1

compute_aggregate_binaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected