lua-users home
lua-l archive

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


According to current luaffi implementation, you have to  cast it to void* or char* with length specified if the data doesnot end with '\0' . Use ffi.string(ffi.cast("void*",ms),ffi.sizeof(ms)) to do so.