Skip to main content

encoded_rlp_integer_len

Function encoded_rlp_integer_len 

Source
pub fn encoded_rlp_integer_len(payload: &[u8]) -> Result<usize, DecodeError>
Expand description

Returns the encoded RLP byte length for a canonical integer payload.

The empty payload represents zero. Non-empty payloads must be shortest-form unsigned big-endian bytes and therefore cannot start with 0x00.