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

Function write_framed

nodedb-array/src/codec/tile_encode.rs:53–56  ·  view source on GitHub ↗
(chunk: &[u8], out: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

51}
52
53fn write_framed(chunk: &[u8], out: &mut Vec<u8>) {
54 out.extend_from_slice(&(chunk.len() as u32).to_le_bytes());
55 out.extend_from_slice(chunk);
56}
57
58/// Encode a `SparseTile` into `out`. The segment writer wraps this payload
59/// in BlockFraming (length + CRC).

Callers 1

encode_structuralFunction · 0.70

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected