Standalone native library that implements Int64/UInt64 and Struct
Source from https://github.com/wireshark/wireshark
- VS2019: use the vcxproj file and set AdditionalIncludeDirectories & AdditionalLibraryDirectories
- Linux: use makefile
make PLAT=linux LUAV_INSTALL=5.1 LUAV_INC=jit-2.1
make install
make test
Built and tested working with: * VS2019 - x64 - LuaJIT 2.1.0-beta3 * arch linux LuaJIT 2.1.0-beta3
Usage:
luajit -lwiresharktypes
or
require("wiresharktypes")
local mynum = UInt64(0xDEADF007, 0x12345678)
for i = 1, 16 do
mynum = mynum:rol(8)
print(mynum:tohex())
end