Function max_power

Source
pub const fn max_power(max_size: usize) -> u8
Expand description

Return the least natural number such that 256^n is greater than or equal to n.

Used for determining the minimal number of bytes needed to represent a given unsigned integer, and more specifically path_length_power and path_count_power.