Class ForeignMemory
java.lang.Object
io.github.connellite.reflection.internal.ForeignMemory
java.lang.foreign.MemorySegment bound by name so this library still compiles on Java 17.
The handle stays null below Java 22 and when address() cannot be called.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ForeignMemory
public ForeignMemory()
-
-
Method Details
-
isAvailable
public static boolean isAvailable() -
addressOf
- Returns:
MemorySegment.ofBuffer(buffer).address(), which includesbuffer.position()- Throws:
Throwable
-