Skip to main content

parse

Function parse 

Source
pub fn parse(input: &[u8]) -> Result<Bencode, Error>
Expand description

Parse exactly one bencoded value from input, requiring that the value consumes the entire buffer.

§Errors

Error::TrailingData if bytes remain after the value; any parse error otherwise.