Skip to main content

chunk_length

Function chunk_length 

Source
pub fn chunk_length(length: u64, index: u64) -> usize
Expand description

The plaintext length of chunk index of length bytes: full, except a shorter last chunk. The caller keeps index below the chunk count.