Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
encode
Function · 0.70
decode
Function · 0.70
Tested by
no test coverage detected