[Cuis-dev] [FFI] Passing a GC collected record to C Code
ken.dickey at whidbey.com
ken.dickey at whidbey.com
Mon Jun 24 13:46:46 PDT 2019
On 2019-06-23 11:51, Philip Bernhart via Cuis-dev wrote:
> Hi,
>
> how do I pass a struct, which is supposed to be
> fully lying in the memory space of the VM to some
> external C code which then copies data into that
> struct and does nothing with it afterwards?
Feature require: #'FFITests'.
Then browse, e.g. FFIPluginTests>>testBiggerStruct
C code corresponding to the tests is in the OpenSmalltalk git
repository, e.g.:
https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/platforms/Cross/plugins/SqueakFFIPrims/sqFFITestFuncs.c
HTH,
-KenD
More information about the Cuis-dev
mailing list