# Uses of Interface
java.lang.foreign.AddressLayout

Packages that use AddressLayoutPREVIEW
Package
Description
java.lang.foreign
Provides low-level access to memory and functions outside the Java runtime.

## Uses of AddressLayoutPREVIEW in java.lang.foreign

Fields in java.lang.foreign declared as AddressLayoutPREVIEW
Modifier and Type
Field
Description
`static final AddressLayoutPREVIEW`
ValueLayout.`ADDRESS`
An address layout constant whose size is the same as that of a machine address (`size_t`), byte alignment set to `sizeof(size_t)`, byte order set to `ByteOrder.nativeOrder()`.
`static final AddressLayoutPREVIEW`
ValueLayout.`ADDRESS_UNALIGNED`
An unaligned address 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 AddressLayoutPREVIEW
Modifier and Type
Method
Description
`AddressLayoutPREVIEW`
AddressLayout.`withByteAlignment(long byteAlignment)`
Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).
`AddressLayoutPREVIEW`
AddressLayout.`withName(String name)`
Returns a memory layout with the same characteristics as this layout, but with the given name.
`AddressLayoutPREVIEW`
AddressLayout.`withOrder(ByteOrder order)`
Returns a value layout with the same characteristics as this layout, but with the given byte order.
`AddressLayoutPREVIEW`
AddressLayout.`withoutName()`
Returns a memory layout with the same characteristics as this layout, but with no name.
`AddressLayoutPREVIEW`
AddressLayout.`withoutTargetLayout()`
Returns an address layout with the same carrier, alignment constraint, name and order as this address layout, but with no target layout.
`AddressLayoutPREVIEW`
AddressLayout.`withTargetLayout(MemoryLayoutPREVIEW layout)`
Returns an address layout with the same carrier, alignment constraint, name and order as this address layout, but associated with the specified target layout.
Methods in java.lang.foreign with parameters of type AddressLayoutPREVIEW
Modifier and Type
Method
Description
`default MemorySegmentPREVIEW`
SegmentAllocator.`allocate(AddressLayoutPREVIEW layout, MemorySegmentPREVIEW value)`
Allocates a memory segment with the given layout and initializes it with the given address value.
`default MemorySegmentPREVIEW`
MemorySegment.`get(AddressLayoutPREVIEW layout, long offset)`
Reads an address from this segment at the given offset, with the given layout.
`default MemorySegmentPREVIEW`
MemorySegment.`getAtIndex(AddressLayoutPREVIEW layout, long index)`
Reads an address from this segment at the given at the given index, scaled by the given layout size.
`default void`
MemorySegment.`set(AddressLayoutPREVIEW layout, long offset, MemorySegmentPREVIEW value)`
Writes an address into this segment at the given offset, with the given layout.
`default void`
MemorySegment.`setAtIndex(AddressLayoutPREVIEW layout, long index, MemorySegmentPREVIEW value)`
Writes an address into this segment at the given index, scaled by the given layout size.