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 4 years ago

Owez commented 4 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