Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Protocols
Protocols.Bittorrent
Protocols.Bittorrent.Bencoding

Method Protocols.Bittorrent.Bencoding.bits2string()


Method bits2string

string bits2string(array(int(0..1)) v)

Description

Convert an array of int(0..1) to a Bittorrent style bitstring. Input will be padded to even bytes.