Module lava_torrent::bencode::write [] [src]

Module for bencode-related encoding.

Functions

encode_bytes

Encode bytes and return the result in a Vec.

encode_dictionary

Encode dict and return the result in a Vec.

encode_integer

Encode int and return the result in a Vec.

encode_list

Encode list and return the result in a Vec.

encode_string

Encode string and return the result in a Vec.

write_bytes

Encode bytes and write the result to dst.

write_dictionary

Encode dict and write the result to dst.

write_integer

Encode int and write the result to dst.

write_list

Encode list and write the result to dst.

write_string

Encode string and write the result to dst.