Function message_io::util::encoding::decode_size[][src]

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

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.