Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Arrays in Struct/Unions should be expanded rather than replaced with pointers like in Functions #14

Open
ParadoxV5 opened this issue Jun 8, 2023 · 2 comments

Comments

@ParadoxV5
Copy link
Owner

Array members of structs are inline.

@ParadoxV5 ParadoxV5 added this to the v1.1 milestone Jun 8, 2023
@ParadoxV5
Copy link
Owner Author

The type to feed to Struct#layout: https://rubydoc.info/gems/ffi/FFI/ArrayType
Corresponding FFI type: https://rubydoc.info/gems/ffi/FFI/Struct/InlineArray

Arrays in functions/variables are pointers, so this pair is inapplicable for those (although would be nice).

@ParadoxV5
Copy link
Owner Author

Requires #3 (which previously had no schedule) – pointers to functions can make quite some gibberish, making array detection not straightforward.

Delaying for another version.

@ParadoxV5 ParadoxV5 modified the milestones: v1.1, 1.2 Jun 12, 2023
@ParadoxV5 ParadoxV5 removed their assignment Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: 🔜 To Do
Development

No branches or pull requests

1 participant