Function log_from_valid

Source
pub fn log_from_valid(block_size: u32) -> u8
Expand description

Computes the base-2 logarithm form of a valid block size.

This is the same as computing n for a valid block size which can be represented as (MIN * 2n) (0 <= n).

ยงUsage Constraints

  • block_size must be valid.