struct.unpack

Discuss the development of Lua addons for Ashita v3 here.
Post Reply
Yunamahoutsukai
Posts: 20
Joined: Tue Oct 24, 2017 11:28 am

struct.unpack

Post by Yunamahoutsukai » Mon Mar 26, 2018 4:07 pm

It looks like Ashita supports this library but I cant find any docmuentation on it.
Is there any?
Are there other undocumented libraries available besides the ones documented in the Wiki?
User avatar
atom0s
Site Admin
Posts: 359
Joined: Sat May 14, 2016 5:13 pm

Re: struct.unpack

Post by atom0s » Tue Mar 27, 2018 11:26 am

http://ashita.atom0s.com/wiki2/doku.php ... tions:bits

The bits unpacking stuff is listed there. As for struct.unpack, this is just a general lib inclusion to the main Lua library itself.
You can find more info on how to use that here:
http://www.inf.puc-rio.br/~roberto/struct/

As for what other 'hidden' libraries there are, I would really call them hidden just not documented.
- bitop: http://bitop.luajit.org/ - Should be accessible via bit.xxx function calls.
- lpack: https://github.com/LuaDist/lpack - Should be accessible via pack.pack / pack.unpack calls.
- lstruct: http://www.inf.puc-rio.br/~roberto/struct/ - Should be accessible via struct.xxx calls. (pack, unpack, size only.)
- luasocket: http://w3.impa.br/~diego/software/luasocket/ - Should be accessible via its normal means in its docs.

Are the only libraries added to the Lua library in Ashita.
Lead Ashita Developer

Want to donate to say thanks?
https://www.paypal.me/atom0s
Yunamahoutsukai
Posts: 20
Joined: Tue Oct 24, 2017 11:28 am

Re: struct.unpack

Post by Yunamahoutsukai » Tue Mar 27, 2018 3:42 pm

Thank you, that helps alot.
Post Reply