Integrated: 7903626: Add struct helper method to reintrepret an array of structs

Jorn Vernee jvernee at openjdk.org
Tue Jan 16 16:07:03 UTC 2024


On Tue, 16 Jan 2024 15:05:41 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> This patch renames the existing `ofAddress` method we generate in struct classes to `reinterpret` to reflect the latest naming changes in the FFM API. It also adds another overload that takes an element count, for reinterpreting arrays. Finally, this patch adds the missing cleanup parameter that the underlying reinterpret method accepts.

This pull request has now been integrated.

Changeset: 65ff2f3d
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/65ff2f3dc0665f47970b2bcd38f5f3f3c62294e4
Stats:     231 lines in 9 files changed: 126 ins; 97 del; 8 mod

7903626: Add struct helper method to reintrepret an array of structs

Reviewed-by: mcimadamore

-------------

PR: https://git.openjdk.org/jextract/pull/178


More information about the jextract-dev mailing list