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

Function decode_surrogates

nodedb-array/src/codec/column_codec.rs:37–43  ·  view source on GitHub ↗
(data: &[u8])

Source from the content-addressed store, hash-verified

35}
36
37pub fn decode_surrogates(data: &[u8]) -> ArrayResult<Vec<Surrogate>> {
38 let as_i64 = nodedb_codec::fastlanes::decode(data).map_err(codec_err)?;
39 Ok(as_i64
40 .into_iter()
41 .map(|v| Surrogate::new(v as u32))
42 .collect())
43}
44
45// ---------------------------------------------------------------------------
46// Row kinds: raw u8 bytes

Callers 4

surrogates_roundtripFunction · 0.85
decode_structuralFunction · 0.85

Calls 2

collectMethod · 0.80
decodeFunction · 0.50

Tested by 3

surrogates_roundtripFunction · 0.68