Skip to main content

decode

Function decode 

Source
pub fn decode(buf: &[u8]) -> Result<Decoded, FrameError>
Expand description

Decodes one length-prefixed frame from the head of buf, under the decoding rule.