Uses of Interface
jdk.incubator.foreign.MemoryAddress
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of MemoryAddress in jdk.incubator.foreign
Modifier and TypeFieldDescriptionstatic final MemoryAddress
MemoryAddress.NULL
The native memory address instance modelling theNULL
address.Modifier and TypeMethodDescriptionMemoryAddress.addOffset
(long offset) Creates a new memory address with given offset (in bytes), which might be negative, from current one.Addressable.address()
Returns the memory address associated with this addressable.MemorySegment.address()
Returns the base memory address associated with this native memory segment.NativeSymbol.address()
Returns the memory address associated with this symbol.VaList.address()
Returns the memory address associated with this variable argument list.MemoryAddress.get
(ValueLayout.OfAddress layout, long offset) Reads an address from this address and offset with given layout.default MemoryAddress
MemorySegment.get
(ValueLayout.OfAddress layout, long offset) Reads an address from this segment and offset with given layout.MemoryAddress.getAtIndex
(ValueLayout.OfAddress layout, long index) Reads an address from this address and index, scaled by given layout size.default MemoryAddress
MemorySegment.getAtIndex
(ValueLayout.OfAddress layout, long index) Reads an address from this segment and index, scaled by given layout size.VaList.nextVarg
(ValueLayout.OfAddress layout) Reads the next value as aMemoryAddress
and advances this variable argument list's position.static MemoryAddress
MemoryAddress.ofLong
(long value) Obtain a native memory address instance from given long address.Modifier and TypeMethodDescriptionstatic MemorySegment
MemorySegment.ofAddress
(MemoryAddress address, long bytesSize, ResourceScope scope) Creates a new native memory segment with given size and resource scope, and whose base address is the given address.static NativeSymbol
NativeSymbol.ofAddress
(String name, MemoryAddress address, ResourceScope scope) Creates a new symbol from given name, address and scope.static VaList
VaList.ofAddress
(MemoryAddress address, ResourceScope scope) Constructs a new variable argument list from a memory address pointing to an existing variable argument list, with given resource scope.