Type Definition BStr
benko
type BStr = Vec<u8>;
A Bencode ByteString, (format: “[length]:[bytes]”)
impl EncodeBencode<Vec<u8, Global>> for BStr
fn bytes(&self) -> Vec<u8>
Parses the Bencode typed object back into a bencoded array of bytes. Read more
impl ParseBenc<Vec<u8, Global>> for BStr
fn parse_with_offset(bytes: &[u8]) -> ParseResult<(Self, usize)>
attempts to parse, and returns a tuple containing the result, and the byte offset.
fn parse(bytes: &[u8]) -> ParseResult<Self>
attempts to parse and returns the result.
impl WrapBenc for BStr
fn wrap_benc(self) -> Benc