Function ssz::encode_length
source ยท pub fn encode_length(len: usize) -> [u8; 4]
Expand description
Encode len
as a little-endian byte array of BYTES_PER_LENGTH_OFFSET
length.
If len
is larger than 2 ^ BYTES_PER_LENGTH_OFFSET
, a debug_assert
is raised.