[squeak-dev] Another FFI challenge
marcel.taeumel at hpi.de
Wed Jun 17 12:56:31 UTC 2020
> So what is needed is to get the address of the variable (exactly like we lookup address of a function), then dereference it to get the contents...
Since I am in the process of shrinking "Alien-Core" into "FFI-Callback" ... could this be implemented with a new interface to the FFI plugin? Maybe not. Unless you can provide an exported call that the plugin can intercept to copy the address for you? If it is not already exposed in another call. Then it would be easy.
Am 17.06.2020 14:11:14 schrieb Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>:
I'm not so sure.
It does not look like a constant, but rather a variable.
The type of this variable is a hid_t, but the content can change at runtime (I believe once at HDF5 initialisation).
So what is needed is to get the address of the variable (exactly like we lookup address of a function), then dereference it to get the contents...
Le mer. 17 juin 2020 à 12:52, Marcel Taeumel <marcel.taeumel at hpi.de [mailto:marcel.taeumel at hpi.de]> a écrit :
that's like to already be covered by ExternalPool. :-) I tried to write a lot of documentation on how to use it in the class comment.
Am 17.06.2020 12:50:24 schrieb Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com [mailto:nicolas.cellier.aka.nice at gmail.com]>:
Hi all, Marcel,
yet another basic requirement:
I did not even try to inquire the implementation...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev