Uses of Interface
java.lang.foreign.MemoryAddress
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of MemoryAddressPREVIEW in java.lang.foreign
Modifier and TypeFieldDescriptionstatic final MemoryAddressPREVIEW
MemoryAddress.NULL
The memory address instance modelling theNULL
address.Modifier and TypeMethodDescriptionMemoryAddress.addOffset
(long offset) Returns a memory address at given offset from this address.Addressable.address()
Returns the memory addressPREVIEW associated with this addressable.MemorySegment.address()
Returns the base memory address associated with this native memory segment.VaList.address()
Returns the memory addressPREVIEW associated with this variable argument list.MemoryAddress.get
(ValueLayout.OfAddressPREVIEW layout, long offset) Reads an address from this address at the given offset, with the given layout.default MemoryAddressPREVIEW
MemorySegment.get
(ValueLayout.OfAddressPREVIEW layout, long offset) Reads an address from this segment at the given offset, with the given layout.MemoryAddress.getAtIndex
(ValueLayout.OfAddressPREVIEW layout, long index) Reads an address from this address at the given index, scaled by the given layout size.default MemoryAddressPREVIEW
MemorySegment.getAtIndex
(ValueLayout.OfAddressPREVIEW layout, long index) Reads an address from this segment at the given index, scaled by the given layout size.VaList.nextVarg
(ValueLayout.OfAddressPREVIEW layout) Reads the next value as aMemoryAddress
and advances this variable argument list's position.static MemoryAddressPREVIEW
MemoryAddress.ofLong
(long value) Creates a memory address from the given long value.Modifier and TypeMethodDescriptionstatic MemorySegmentPREVIEW
MemorySegment.ofAddress
(MemoryAddressPREVIEW address, long bytesSize, MemorySessionPREVIEW session) Creates a native memory segment with the given size, base address, and memory session.VaList.ofAddress
(MemoryAddressPREVIEW address, MemorySessionPREVIEW session) Creates a variable argument list from a memory address pointing to an existing variable argument list, with the given memory session.