lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Apr 30, 2013 at 1:00 PM, luciano de souza <luchyanus@gmail.com> wrote:
In order words, I don't know what I should use to read and write a set
of bytes in Lua and I don't know how to represent C or Pascal
structures.

The struct library does the needed packing/unpacking:

http://www.inf.puc-rio.br/~roberto/struct/

If you need speed, then LuaJIT is an attractive proposition since you can feed its FFI a struct definition in C format.