[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: cdata conversion failure with ffi.string()
- From: qtiuto <qtiuto@...>
- Date: Thu, 07 Mar 2019 22:19:18 +0800
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.