Skip to main content

encode_chunk_ids_intpack

Function encode_chunk_ids_intpack 

Source
pub fn encode_chunk_ids_intpack(ids: &[String]) -> Option<Vec<u8>>
Expand description

encode the chunk-ids section as an intpack repack payload: a kind byte, the count, then the 32 raw digest bytes per id. returns None when any id is not a canonical sha256:<64 lowercase hex> string, so the writer falls back to the raw encoding and reconstruction stays guaranteed byte-exact.