Skip to main content

num_blocks

Function num_blocks 

Source
pub const fn num_blocks(total_bytes: u64) -> u32
Expand description

Number of discovery_block_bytes blocks a blob of total_bytes spans.

The empty blob spans zero blocks (num_blocks(0) == 0), not one — an empty Coverage over it is trivially complete.