[foreign] RFR 8219103: Add an offsetOf utility to find the offset of Struct fields
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri Feb 15 15:40:41 UTC 2019
Naming aside, this looks a good functionality!
Maurizio
On 15/02/2019 15:27, Jorn Vernee wrote:
> Hi,
>
> This is an RFR for the earlier proposed offsetOf utility for finding
> the offset of a field of a struct.
>
> This is based on Maurizio's suggestion to use the LayoutPath API [1],
> with some minor tweaks and a test added.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8219103
> Webrev:
> http://cr.openjdk.java.net/~jvernee/panama/webrevs/8219103/webrev.00/
>
> Thanks,
> Jorn
>
> [1] :
> https://mail.openjdk.java.net/pipermail/panama-dev/2019-February/004360.html
More information about the panama-dev
mailing list