[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: avoiding copy - Luajit FFI
- From: Fabio Kaminski <fabiokaminski@...>
- Date: Tue, 7 Jun 2011 14:09:06 -0300
> So in theory you can break ptr in parts, and since you are allowed to
> do pointer arithmetic in ptr
> you can advance the cursor inside a lua context..
oops, no pointer arith..
so how about a new arg in ffi.string() function:
str = ffi.string(ptr [,len][,start])
without that.. only manipulating ptr from a C function .. :(