Pike v8.0 release 1738

Method Protocols.Bittorrent.Bencoding.decode()


Method decode

string|int|array|mapping decode(string what)

Description

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