decode_binary

Function decode_binary 

Source
pub fn decode_binary<B: Buf>(buf: &mut B) -> Result<Bytes>
Expand description

Decodes binary data with a 2-byte length prefix

ยงErrors

Returns an error if there are insufficient bytes in the buffer