Method Protocols.Bittorrent.Bencoding.encode() Method encode string encode(string|int|array|mapping data) Description Encodes a Bittorrent bencoded data chunk.