Skip to main content

derive_chunk_set_id

Function derive_chunk_set_id 

Source
pub fn derive_chunk_set_id(id: &Md1EncodingId) -> u32
Expand description

Derive the 20-bit chunk-set-id from a Md1EncodingId by taking the top 20 bits of the underlying 16-byte hash, MSB-first.

The chunk-set-id groups chunks belonging to the same encoded payload. Returned value is in the range 0..=0xFFFFF.