|
Am 16.04.2014 13:24 schröbte Luiz Henrique de Figueiredo:
I'm not sure whether it is possible to detect the native endianess and/or integer word size in pure LuaIn Lua 5.3, you can: a=string.packint(1) print(#a) -- native lua_Integer size print(a:byte(1,1)) -- native endianness
Ah, I had already forgotten about this function. But we need the native size of int (and short, and long, and size_t) not lua_Integer.
Philipp