Function holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dht::arq::power_and_count_from_length
source · pub fn power_and_count_from_length(
dim: &Dimension,
len: u64,
max_chunks: u32
) -> (u8, u32)
Expand description
Calculate the unique pairing of power and count implied by a given length and max number of chunks. Gives the nearest value that satisfies the constraints, but may not be exact.