Skip to main content

block_range

Function block_range 

Source
pub fn block_range(content_len: u64, index: u32) -> (u64, u64)
Expand description

Byte range [start, end) of block index within content_len bytes.

The final block may be short; an out-of-range index clamps to an empty range at content_len (callers never pass one — the auditor draws indices in 0..block_count).