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.