Function decode_size

Source
pub fn decode_size(data: &[u8]) -> Option<(usize, usize)>
Expand description

Decodes an encoded value in a buffer. The function returns the message size and the consumed bytes or none if the buffer is too small.