estimate_chunks

Function estimate_chunks 

Source
pub fn estimate_chunks(data_size: u64) -> usize
Expand description

Estimates the number of chunks needed for data of the given size.

Uses the default chunk size (256 KB).

§Examples

use ipfrs_core::utils::estimate_chunks;

assert_eq!(estimate_chunks(1_000_000), 4); // ~1 MB → 4 chunks