# Uses of Interface
java.lang.foreign.StructLayout

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

## Uses of StructLayoutPREVIEW in java.lang.foreign

Methods in java.lang.foreign that return StructLayoutPREVIEW
Modifier and Type
Method
Description
`static StructLayoutPREVIEW`
Linker.Option.`captureStateLayout()`
Returns a struct layout that represents the layout of the capture state segment that is passed to a downcall handle linked with `Linker.Option.captureCallState(String...)`PREVIEW.
`static StructLayoutPREVIEW`
MemoryLayout.`structLayout(MemoryLayoutPREVIEW... elements)`
Creates a struct layout with the given member layouts.
`StructLayoutPREVIEW`
StructLayout.`withByteAlignment(long byteAlignment)`
Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).
`StructLayoutPREVIEW`
StructLayout.`withName(String name)`
Returns a memory layout with the same characteristics as this layout, but with the given name.
`StructLayoutPREVIEW`
StructLayout.`withoutName()`
Returns a memory layout with the same characteristics as this layout, but with no name.