No segment method for MemoryAddress?

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Aug 24 08:12:00 UTC 2020


On 22/08/2020 03:45, Ty Young wrote:
> Doing that increases the amount of generic type declarations for 
> static methods which are already decently sized:
>
>
> public static <T, E extends NativeValue<T>> E 
> ofUnsafeValueLayout(MemoryAddress address, ValueLayout layout) 

Without knowing exactly what your code is doing - this seems similar to 
what we do in jextract to expose global variables (e.g. create unsafe 
segments based at a certain address, with given size).

Maurizio



More information about the panama-dev mailing list