Uses of Interface
jdk.incubator.foreign.MemoryLayout.PathElement
Package | Description |
---|---|
jdk.incubator.foreign |
Classes to support low-level, safe and efficient memory access.
|
-
Uses of MemoryLayout.PathElement in jdk.incubator.foreign
Methods in jdk.incubator.foreign that return MemoryLayout.PathElement Modifier and Type Method Description static MemoryLayout.PathElement
MemoryLayout.PathElement. groupElement(String name)
Returns a path element which selects a member layout with given name from a given group layout.static MemoryLayout.PathElement
MemoryLayout.PathElement. sequenceElement()
Returns a path element which selects an unspecified element layout from a given sequence layout.static MemoryLayout.PathElement
MemoryLayout.PathElement. sequenceElement(long index)
Returns a path element which selects the element layout at the specified position in a given the sequence layout.static MemoryLayout.PathElement
MemoryLayout.PathElement. sequenceElement(long start, long step)
Returns a path element which selects the element layout in a range of positions in a given the sequence layout, where the range is expressed as a pair of starting index (inclusive)S
and step factor (which can also be negative)F
.Methods in jdk.incubator.foreign with parameters of type MemoryLayout.PathElement Modifier and Type Method Description default long
MemoryLayout. offset(MemoryLayout.PathElement... elements)
Computes the offset of the layout selected by a given layout path, where the path is considered rooted in this layout.default VarHandle
MemoryLayout. varHandle(Class<?> carrier, MemoryLayout.PathElement... elements)
Creates a memory access var handle that can be used to dereference memory at the layout selected by a given layout path, where the path is considered rooted in this layout.