Owez / torro

A correct and easy-to-use BitTorrent library
MIT License
9 stars 0 forks source link

Make strings into &[u8] #3

Closed Owez closed 3 years ago

Owez commented 3 years ago

As per the wiki spec, A byte string (a sequence of bytes, not necessarily characters) is encoded as <length>:<contents>. But only utf-8 strings are implemented, this should be changed to &[u8] for conformity