Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
Protocols
Protocols.Bittorrent
Protocols.Bittorrent.Bencoding

Method Protocols.Bittorrent.Bencoding.bits2string()


Method bits2string

string Protocols.Bittorrent.Bencoding.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.