Uses of Class
jdk.incubator.foreign.SequenceLayout
Package | Description |
---|---|
jdk.incubator.foreign |
Classes to support low-level, safe and efficient memory access.
|
-
Uses of SequenceLayout in jdk.incubator.foreign
Methods in jdk.incubator.foreign that return SequenceLayout Modifier and Type Method Description SequenceLayout
SequenceLayout. flatten()
Returns a new, flattened sequence layout whose element layout is the first non-sequence element layout found by recursively traversing the element layouts of this sequence layout.static SequenceLayout
MemoryLayout. ofSequence(long elementCount, MemoryLayout elementLayout)
Create a new sequence layout with given element layout and element count.static SequenceLayout
MemoryLayout. ofSequence(MemoryLayout elementLayout)
Create a new sequence layout, with unbounded element count and given element layout.SequenceLayout
SequenceLayout. reshape(long... elementCounts)
Returns a new sequence layout where element layouts in the flattened projection of this sequence layout (seeflatten()
) are re-arranged into one or more nested sequence layouts according to the provided element counts.SequenceLayout
SequenceLayout. withAttribute(String name, Constable value)
Returns a new memory layout which features the same attributes as this layout, plus the newly specified attribute.SequenceLayout
SequenceLayout. withBitAlignment(long alignmentBits)
Creates a new layout which features the desired alignment constraint.SequenceLayout
SequenceLayout. withElementCount(long elementCount)
Obtains a new sequence layout with same element layout, alignment constraints and name as this sequence layout but with the new specified element count.SequenceLayout
SequenceLayout. withName(String name)
Creates a new layout which features the desired layout name.Methods in jdk.incubator.foreign that return types with arguments of type SequenceLayout Modifier and Type Method Description Optional<DynamicConstantDesc<SequenceLayout>>
SequenceLayout. describeConstable()
Methods in jdk.incubator.foreign with parameters of type SequenceLayout Modifier and Type Method Description static <S extends MemorySegment>
Spliterator<S>MemorySegment. spliterator(S segment, SequenceLayout layout)
Returns a spliterator for the given memory segment.