Function lava_torrent::bencode::write::encode_bytes
source · pub fn encode_bytes<B>(bytes: B) -> Vec<u8>where
B: AsRef<[u8]>,
Expand description
Encode bytes
and return the result in a Vec
.
pub fn encode_bytes<B>(bytes: B) -> Vec<u8>where
B: AsRef<[u8]>,
Encode bytes
and return the result in a Vec
.