lua-users home
lua-l archive

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

On Tue, Jun 7, 2011 at 6:09 PM, Fabio Kaminski <> wrote:
> without that.. only manipulating ptr from a C function .. :(

The FFI has pointer arithmetic; you can add integers to pointers as
you would in C, and cast them around, as you would in C.

I don't yet appreciate what you're complaining about or why you need
to convert things to strings and pass strings rather than just passing
pointers and lengths to C.