Uses of Class
java.lang.foreign.ValueLayout.OfAddress
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfAddressPREVIEW in java.lang.foreign
Modifier and TypeFieldDescriptionstatic final ValueLayout.OfAddressPREVIEW
ValueLayout.ADDRESS
A value layout constant whose size is the same as that of a machine address (size_t
), bit alignment set tosizeof(size_t) * 8
, and byte order set toByteOrder.nativeOrder()
.Modifier and TypeMethodDescriptionVaList.Builder.addVarg
(ValueLayout.OfAddressPREVIEW layout, AddressablePREVIEW value) Writes anAddressable
value to the variable argument list being constructed.default MemorySegmentPREVIEW
SegmentAllocator.allocate
(ValueLayout.OfAddressPREVIEW layout, AddressablePREVIEW value) Allocates a memory segment with the given layout and initializes it with the given address value.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.void
MemoryAddress.set
(ValueLayout.OfAddressPREVIEW layout, long offset, AddressablePREVIEW value) Writes an address into this address at the given offset, with the given layout.default void
MemorySegment.set
(ValueLayout.OfAddressPREVIEW layout, long offset, AddressablePREVIEW value) Writes an address into this segment at the given offset, with the given layout.void
MemoryAddress.setAtIndex
(ValueLayout.OfAddressPREVIEW layout, long index, AddressablePREVIEW value) Writes an address into this address at the given index, scaled by the given layout size.default void
MemorySegment.setAtIndex
(ValueLayout.OfAddressPREVIEW layout, long index, AddressablePREVIEW value) Writes an address into this segment at the given index, scaled by the given layout size.