Skip to main content

decode_varint_value

Function decode_varint_value 

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

Read a varint payload value from the body.

Call this after decode_field_header returns FieldWireType::Varint. Returns (value, bytes_consumed).