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

Function array_header_fixarray

nodedb-query/src/msgpack_scan/reader.rs:609–614  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

607
608 #[test]
609 fn array_header_fixarray() {
610 let buf = encode(&json!([10, 20, 30]));
611 let (count, data_offset) = array_header(&buf, 0).unwrap();
612 assert_eq!(count, 3);
613 assert_eq!(read_i64(&buf, data_offset), Some(10));
614 }
615
616 // ── Canonical encoding guarantee tests ─────────────────────────────
617

Callers

nothing calls this directly

Calls 2

array_headerFunction · 0.85
encodeFunction · 0.70

Tested by

no test coverage detected