pike.git / lib / modules / Protocols.pmod / Bittorrent.pmod / Bencoding.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/Bittorrent.pmod/Bencoding.pmod:1: + #pike __REAL_VERSION__ +    //! decodes a bittorrent bencoded data chunk   //! returns ({data,remaining string})   //! will return ({0,input string}) if no data could be decoded      array(string|int|array|mapping) _decode(string what)   {    if (what=="") return ({UNDEFINED,what});    if (what==0) error("Cannot decode 0 (zero)\n");       int i;