[FFI] Pointer arithmetic impossible on ByteArray?
ncellier at ifrance.com
Fri May 19 23:29:40 UTC 2006
Now playing with FFI, i really appreciate to be able to handle memory in a
Smalltalk space, with a ByteArray.
Unfotunately, one little thing lack on ByteArray: pointer arithmetic.
I'd like to pass an address kind of (aByteArray baseAdress + 4) to a FFI CALL
I can do that right now with external heap (ExternalAddress new fromInteger:
anAddress asInteger + 4), but not with Smalltalk-space.
Maybe an IndirectByteArray could be added to the FFI plugin?
This would be really cool.
More information about the Squeak-dev