# Uses of Interface
java.lang.foreign.ValueLayout.OfAddress

Packages that use ValueLayout.OfAddressPREVIEW
Package
Description
java.lang.foreign
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.OfAddressPREVIEW
  Modifier and Type
  Field
  Description
  `static 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 to `sizeof(size_t) * 8`, byte order set to `ByteOrder.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 to `ByteOrder.nativeOrder()`.
  Methods in java.lang.foreign that return ValueLayout.OfAddressPREVIEW
  Modifier and Type
  Method
  Description
  `ValueLayout.OfAddressPREVIEW`
  ValueLayout.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.OfAddressPREVIEW`
  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).
  `ValueLayout.OfAddressPREVIEW`
  ValueLayout.OfAddress.`withName(String name)`
  Returns a memory layout of the same type with the same size and alignment constraint as this layout, but with the specified name.
  `ValueLayout.OfAddressPREVIEW`
  ValueLayout.OfAddress.`withOrder(ByteOrder order)`
  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.OfAddressPREVIEW
  Modifier and Type
  Method
  Description
  `VaList.BuilderPREVIEW`
  VaList.Builder.`addVarg(ValueLayout.OfAddressPREVIEW layout, MemorySegmentPREVIEW segment)`
  Writes the addressPREVIEW of the provided native segment to the variable argument list being constructed.
  `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.
  `MemorySegmentPREVIEW`
  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.