# Uses of Interface
java.lang.foreign.SequenceLayout

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

## Uses of SequenceLayoutPREVIEW in java.lang.foreign

Methods in java.lang.foreign that return SequenceLayoutPREVIEW
Modifier and Type
Method
Description
`SequenceLayoutPREVIEW`
SequenceLayout.`flatten()`
Returns a flattened sequence layout.
`SequenceLayoutPREVIEW`
SequenceLayout.`reshape(long... elementCounts)`
Rearranges the elements in this sequence layout into a multi-dimensional sequence layout.
`static SequenceLayoutPREVIEW`
MemoryLayout.`sequenceLayout(long elementCount, MemoryLayoutPREVIEW elementLayout)`
Creates a sequence layout with the given element layout and element count.
`static SequenceLayoutPREVIEW`
MemoryLayout.`sequenceLayout(MemoryLayoutPREVIEW elementLayout)`
Creates a sequence layout with the given element layout and the maximum element count such that it does not overflow a `long`.
`SequenceLayoutPREVIEW`
SequenceLayout.`withByteAlignment(long byteAlignment)`
Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).
`SequenceLayoutPREVIEW`
SequenceLayout.`withElementCount(long elementCount)`
Returns a sequence layout with the same characteristics of this layout, but with the given element count.
`SequenceLayoutPREVIEW`
SequenceLayout.`withName(String name)`
Returns a memory layout with the same characteristics as this layout, but with the given name.