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

Function single_byte

nodedb-codec/src/rans.rs:346–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344
345 #[test]
346 fn single_byte() {
347 let encoded = encode(&[42]);
348 let decoded = decode(&encoded).unwrap();
349 assert_eq!(decoded, vec![42]);
350 }
351
352 #[test]
353 fn repeated_bytes() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected