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

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

Decodes an encoded value in a buffer. The function returns the message size or none if the buffer is less than PADDING.