Skip to main content

decode_bytes

Function decode_bytes 

Source
pub fn decode_bytes(data: &[u8]) -> Result<(&[u8], &[u8]), RLPDecodeError>
Expand description

Decodes the payload of an RLP item from a slice of bytes. It returns a 2-element tuple with the following elements:

  • The payload of the item.
  • The remaining bytes after the item.