Skip to content

[vm/ffi] Allow struct classes to override sizeOf #37842

Closed
@sjindel-google

Description

@sjindel-google

Since all operations on structs are dispatched to the getters/settings (instance methods which can already be overriden) and the auto-generated #sizeOf, we can allow users to define custom struct classes by overriding sizeOf.

This would allow, for example, defining structs with different behavior (e.g. different fields) on different platforms.

Metadata

Metadata

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-ffi

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions