Pike v8.1 release 6

Method Protocols.Bittorrent.Bencoding.decode()


Method decode

string|int|array|mapping decode(Stdio.Buffer buf)

Description

Decodes a Bittorrent bencoded data chunk and ignores the remaining string. Returns UNDEFINED if the data is incomplete.