Uses of Interface
jdk.incubator.foreign.MemoryAddress
Package | Description |
---|---|
jdk.incubator.foreign |
Classes to support low-level, safe and efficient memory access.
|
-
Uses of MemoryAddress in jdk.incubator.foreign
Fields in jdk.incubator.foreign declared as MemoryAddress Modifier and Type Field Description static MemoryAddress
MemoryAddress. NULL
The unchecked memory address instance modelling theNULL
address.Methods in jdk.incubator.foreign that return MemoryAddress Modifier and Type Method Description MemoryAddress
MemoryAddress. addOffset(long offset)
Creates a new memory address with given offset (in bytes), which might be negative, from current one.MemoryAddress
MemorySegment. baseAddress()
The base memory address associated with this memory segment.static MemoryAddress
MemoryAddress. ofLong(long value)
Obtain a new unchecked memory address instance from given long address.MemoryAddress
MemoryAddress. rebase(MemorySegment segment)
Reinterpret this address as an offset into the provided segment.Methods in jdk.incubator.foreign with parameters of type MemoryAddress Modifier and Type Method Description static MemorySegment
MemorySegment. ofNativeRestricted(MemoryAddress addr, long bytesSize, Thread owner, Runnable cleanup, Object attachment)
Returns a new native memory segment with given base address and size; the returned segment has its own temporal bounds, and can therefore be closed; closing such a segment can optionally result in calling an user-provided cleanup action.