Extracted from Pike v8.0 release 28 as of 2015-09-20.
   

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.