Function lava_torrent::bencode::write::write_bytes
source · pub fn write_bytes<B, W>(bytes: B, dst: &mut W) -> Result<(), LavaTorrentError>where
B: AsRef<[u8]>,
W: Write,
Expand description
Encode bytes
and write the result to dst
.