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 MemoryAddressMemoryAddress. NULLThe unchecked memory address instance modelling theNULLaddress.Methods in jdk.incubator.foreign that return MemoryAddress Modifier and Type Method Description MemoryAddressMemoryAddress. addOffset(long offset)Creates a new memory address with given offset (in bytes), which might be negative, from current one.MemoryAddressMemorySegment. baseAddress()The base memory address associated with this memory segment.static MemoryAddressMemoryAddress. ofLong(long value)Obtain a new unchecked memory address instance from given long address.MemoryAddressMemoryAddress. 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 MemorySegmentMemorySegment. 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.