rust-bencode
rust-bencode copied to clipboard
Implementation of Bencode encoding written in rust
There are 2 things in this library called ByteString: enum item ByteString and type util::ByteString used as a key. Placing in util:: mod looks like it's something auxiliary while actually...
The way I was thinking of implementing this is to create a `BencodeSlice { encoded: &'a [u8], decoded: BencodeSliceEntry { Empty, Number(i64), ByteString(&'a [u8]), List(Vec
In a `.torrent` file, the hashes of the pieces are saved as a string. However, this string does not match Rust's `String` type, because it contains incorrect UTF8. What we...