lua-users home
lua-l archive

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


> 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 .. :(