Skip to main content

block_count

Function block_count 

Source
pub fn block_count(content_len: u64) -> u32
Expand description

Number of 1 KiB blocks covering content_len bytes.

Always at least 1 (an empty chunk is one empty block) so every committed key opens at least one block, and the block index the auditor draws is always in range.