Skip to main content

decode

Function decode 

Source
pub fn decode(buf: &[u8]) -> Option<(u64, usize)>
Expand description

Decode a QUIC variable-length integer from a buffer.

Returns Some((value, bytes_consumed)) on success, or None if the buffer is too short or the prefix is invalid.