Re: LuaJIT 2 ffi (casting / force hotpath)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LuaJIT 2 ffi (casting / force hotpath)
- From: Alex Bradbury <asb@...>
- Date: 2011年1月24日 13:52:40 +0000
On 20 January 2011 21:23, Mike Pall <mikelu-1101@mike.de> wrote:
> I hope the docs clear up many of your questions. If not, then
> please ask here. Feedback welcome!
Just to check I haven't missed anything - am I correct to think that
if I create a uint8_t by e.g. ui8 = ffi.new("uint8_t") then there's no
way of assigning to it directly from Lua. Instead I want to do ui8 =
ffi.new("uint8_t[1]") and then do ui8[0] = whatever?
Alex