automatic_piece_length

Function automatic_piece_length 

Source
pub fn automatic_piece_length(total_length: u64) -> u64
Expand description

Selects a stable automatic piece length for total payload bytes.

The table targets at most roughly 1024 pieces in each band while keeping a 16 KiB minimum for v2 compatibility and a 16 MiB maximum for interoperability.