Function parse_bencode_string

Source
pub fn parse_bencode_string(input: &[u8]) -> IResult<&[u8], &[u8]>
Expand description

Parse out a bencode string, note that bencode strings are not equivalent to Rust strings since bencode places no limit what encoding it uses, hence it’s more appreciate to call them byte strings

§Note

Although the functions are exposed directly, it’s unsuitable to be used directly in most cases, it’s provided for quick and dirty convenience only.