[H2] bto() - Decode Bencoding To Object

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
arcticir
Posts: 471
Joined: 17 Nov 2013, 11:32

[H2] bto() - Decode Bencoding To Object

23 Apr 2017, 21:17

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

Last edited by arcticir on 29 Apr 2017, 11:48, edited 2 times in total.
User avatar
SnowFlake
Posts: 365
Joined: 28 Apr 2015, 05:41
Google: floowsnaake
GitHub: floowsnaake
Contact:

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

28 Apr 2017, 11:26

cool
:yawn:

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 1 guest