[][src]Function bdecode::bdecode

pub fn bdecode(buf: &[u8]) -> Result<Bencode<'_>, BdecodeError>

Decode a bencoded buffer into a Bencode struct.