pub fn parse_fixed_header(
stream: Iter<'_, u8>,
) -> Result<ParsedFixedHeader, Error>Expand description
Parses the fixed header from the provided iterator.
§Errors
Returns an error when the header is incomplete or the remaining length field is malformed.
§Panics
Panics only if the iterator yields fewer than two bytes after the explicit length check above, which would indicate a broken iterator implementation.