Uses of Class
jdk.incubator.foreign.ValueLayout.OfAddress
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of ValueLayout.OfAddress in jdk.incubator.foreign
Modifier and TypeFieldDescriptionstatic final ValueLayout.OfAddress
ValueLayout.ADDRESS
A value layout constant whose size is the same as that of a machine address (size_t
), bit alignment set to 8, and byte order set toByteOrder.nativeOrder()
.Modifier and TypeMethodDescriptionVaList.Builder.addVarg
(ValueLayout.OfAddress layout, Addressable value) Writes anAddressable
value to the variable argument list being constructed.default MemorySegment
SegmentAllocator.allocate
(ValueLayout.OfAddress layout, Addressable value) Allocate a memory segment with given layout and initialize it with given address value (expressed as anAddressable
instance).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.void
MemoryAddress.set
(ValueLayout.OfAddress layout, long offset, Addressable value) Writes an address to this address instance and offset with given layout.default void
MemorySegment.set
(ValueLayout.OfAddress layout, long offset, Addressable value) Writes an address to this segment and offset with given layout.void
MemoryAddress.setAtIndex
(ValueLayout.OfAddress layout, long index, Addressable value) Writes an address to this address instance and index, scaled by given layout size.default void
MemorySegment.setAtIndex
(ValueLayout.OfAddress layout, long index, Addressable value) Writes an address to this segment and index, scaled by given layout size.