[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: avoiding copy - Luajit FFI
- From: Peter Cawley <lua@...>
- Date: Tue, 7 Jun 2011 18:14:20 +0100
On Tue, Jun 7, 2011 at 6:09 PM, Fabio Kaminski <email@example.com> 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.