reth::primitives::revm_primitives::alloy_primitives::ruint

Function nbytes

pub const fn nbytes(bits: usize) -> usize
Expand description

Number of bytes required to represent the given number of bits.

This needs to be public because it is used in the Uint type, specifically in the to_be_bytes() and related functions.