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.