[][src]Module torro::bencode

Bencode parsing-related functions used inside of Torrent::new and Torrent::from_file

Based on the BEP0003 bencode parsing specifications

Enums

Bencode

A found bencode object whilst parsing, only one is returned from parse due to the bencode spec

Functions

parse

Parses provided Vec<u8> input into a Bencode that contains the entirety of the parsed bencode file

parse_slice

Alias to parse which allows a u8 slice, e.g. &[u8]