Skip to main content

decode_field_header

Function decode_field_header 

Source
pub fn decode_field_header(
    buf: &[u8],
) -> Result<(FieldHeader, usize), TypeError>
Expand description

Decode a field header (field_id + wire_type) from the body.

Returns (header, bytes_consumed). The caller should advance their cursor by bytes_consumed before reading the payload.