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

Function roundtrip

nodedb-array/src/codec/coord_delta.rs:264–269  ·  view source on GitHub ↗
(dict: &DimDict)

Source from the content-addressed store, hash-verified

262 use crate::types::coord::value::CoordValue;
263
264 fn roundtrip(dict: &DimDict) -> DimDict {
265 let mut buf = Vec::new();
266 encode_coord_axis(dict, &mut buf).unwrap();
267 let mut pos = 0;
268 decode_coord_axis(&buf, &mut pos).unwrap()
269 }
270
271 fn make_dict(coords: &[i64]) -> DimDict {
272 let mut d = DimDict {

Callers 7

empty_dict_roundtripFunction · 0.70
single_entry_roundtripFunction · 0.70
large_coord_roundtripFunction · 0.70
string_coord_roundtripFunction · 0.70

Calls 2

encode_coord_axisFunction · 0.85
decode_coord_axisFunction · 0.85

Tested by 7

empty_dict_roundtripFunction · 0.56
single_entry_roundtripFunction · 0.56
large_coord_roundtripFunction · 0.56
string_coord_roundtripFunction · 0.56