[vm/ffi] Make Pointer and DynamicLibrary non-special classes #37310
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-ffi
Uh oh!
There was an error while loading. Please reload this page.
As discussed with @sjindel-google, we should probably make Pointer a normal (not VM special) class. This doesn't change the public API of the FFI in any way, but simplifies its implementation.
Historically Pointer was implemented this way as it was modeled after TypedData, but we only the actual integer address to do special things in the VM (when loading and storing data and when doing foreign calls). Loading the address from the Pointer (or storing it in a new Pointer) does not need to be special in any way.
Edit: idem for DynamicLibrary.
The text was updated successfully, but these errors were encountered: