Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to handle 128 bit bitfields in Lua

The newish Arca Binary Gateway Protocol contains 128 bit bitfields that cross the byte boundary:

https://www1.nyse.com/publicdocs/nyse/NYSE_Pillar_Options_Gateway_Binary_Protocol_Specification.pdf

Please check out pages 9 to 16. What is the best way to decode this in lua?