Read and write to and from SequenceLayout fields #277
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi!277
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "array-fields"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When Java-GI generates a MemoryLayout for a class, struct or union, a fixed-size array is represented by a SequenceLayout. Reading and writing values from such layouts is not possible with a regular VarHandle. This PR adds functionality to read and write these arrays by copying data from and to the memory segment directly.