You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openresty-en
Hi2all!
I have to unpack binary data using unpack as i do it in Perl. There is lpack but i have no idea how i can bring it to openresty? Or are there any other ability to unpack it using functionality from the box?
Thnaks
Jim Robinson
unread,
Jun 1, 2017, 4:25:09 PM6/1/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openresty-en
I've used https://github.com/antirez/lua-cmsgpack and thought it worked well. Once they are installed under the openresty luajit/lib directory, you can just load them up and use them:
local cmsgpack = require("cmsgpack.safe")
local cpack = cmsgpack.pack
local cunpack = cmsgpack.unpack
...
local head, err = cpack(meta, status, response.header)