# Uses of Interface
java.lang.foreign.StructLayout

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

## Uses of StructLayout in java.lang.foreign

Methods in java.lang.foreign that return StructLayout
Modifier and Type
Method
Description
`static StructLayout`
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...)`.
`static StructLayout`
MemoryLayout.`structLayout(MemoryLayout... elements)`
Creates a struct layout with the given member layouts.
`StructLayout`
StructLayout.`withByteAlignment(long byteAlignment)`
Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).
`StructLayout`
StructLayout.`withName(String name)`
Returns a memory layout with the same characteristics as this layout, but with the given name.
`StructLayout`
StructLayout.`withoutName()`
Returns a memory layout with the same characteristics as this layout, but with no name.