Skip to main content

parse_header

Function parse_header 

Source
pub fn parse_header(data: &[u8]) -> Result<Header>
Expand description

Parse a TLV header from a byte slice.

Returns the parsed header or an error if the buffer is too small or contains invalid data.

ยงErrors

Returns an error if the buffer is too small for the header.