Page 1 of 1

[H2] bto() - Decode Bencoding To Object

Posted: 23 Apr 2017, 21:17
by arcticir
Used to parse torrent files.

Code: [Select all] [Download] GeSHi © Codebox Plus

buf:=FileRead("*c test.torrent")
size:=VarSetCapacity(buf)

;3 kinds of use:
f:=[]
f.push(bto("test.torrent"))
f.push(bto(buf))
f.push(bto(&buf,size))
MsgBox % ObjTree(f)



Image

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Re: [H2] bto() - Decode Bencoding To Object

Posted: 28 Apr 2017, 11:26
by SnowFlake
cool