Uses of Interface
java.lang.foreign.ValueLayout.OfAddress
Packages that use ValueLayout.OfAddressPREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfAddressPREVIEW in java.lang.foreign
Fields in java.lang.foreign declared as ValueLayout.OfAddressPREVIEWModifier 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
, byte order set toByteOrder.nativeOrder()
.static final ValueLayout.OfAddressPREVIEW
ValueLayout.ADDRESS_UNALIGNED
An unaligned value layout constant whose size is the same as that of a machine address (size_t
), and byte order set toByteOrder.nativeOrder()
.Methods in java.lang.foreign that return ValueLayout.OfAddressPREVIEWModifier and TypeMethodDescriptionValueLayout.OfAddress.asUnbounded()
Returns an unbounded address layout with the same carrier, alignment constraint, name and order as this address layout, but with the specified pointee layout.ValueLayout.OfAddress.withBitAlignment
(long bitAlignment) Returns a memory layout of the same type with the same size and name as this layout, but with the specified alignment constraint (in bits).Returns a memory layout of the same type with the same size and alignment constraint as this layout, but with the specified name.Returns a value layout with the same carrier, alignment constraint and name as this value layout, but with the specified byte order.Methods in java.lang.foreign with parameters of type ValueLayout.OfAddressPREVIEWModifier and TypeMethodDescriptionVaList.Builder.addVarg
(ValueLayout.OfAddressPREVIEW layout, MemorySegmentPREVIEW segment) default MemorySegmentPREVIEW
SegmentAllocator.allocate
(ValueLayout.OfAddressPREVIEW layout, MemorySegmentPREVIEW value) Allocates a memory segment with the given layout and initializes it with the given address value.default MemorySegmentPREVIEW
MemorySegment.get
(ValueLayout.OfAddressPREVIEW layout, long offset) Reads an address from this segment at the given offset, with the given layout.default MemorySegmentPREVIEW
MemorySegment.getAtIndex
(ValueLayout.OfAddressPREVIEW layout, long index) Reads an address from this segment at the given at the given index, scaled by the given layout size.VaList.nextVarg
(ValueLayout.OfAddressPREVIEW layout) Reads the next address value, wraps it into a native segment, and advances this variable argument list's position.default void
MemorySegment.set
(ValueLayout.OfAddressPREVIEW layout, long offset, MemorySegmentPREVIEW value) Writes an address into this segment at the given offset, with the given layout.default void
MemorySegment.setAtIndex
(ValueLayout.OfAddressPREVIEW layout, long index, MemorySegmentPREVIEW value) Writes an address into this segment at the given index, scaled by the given layout size.