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.PathElementMemoryLayout.PathElement. groupElement(String name)Returns a path element which selects a member layout with given name from a given group layout.static MemoryLayout.PathElementMemoryLayout.PathElement. sequenceElement()Returns a path element which selects an unspecified element layout from a given sequence layout.static MemoryLayout.PathElementMemoryLayout.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.PathElementMemoryLayout.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)Sand 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 longMemoryLayout. bitOffset(MemoryLayout.PathElement... elements)Computes the offset, in bits, of the layout selected by a given layout path, where the path is considered rooted in this layout.default longMemoryLayout. byteOffset(MemoryLayout.PathElement... elements)Computes the offset, in bytes, of the layout selected by a given layout path, where the path is considered rooted in this layout.default MemoryLayoutMemoryLayout. map(UnaryOperator<MemoryLayout> op, MemoryLayout.PathElement... elements)Creates a transformed copy of this layout where a selected layout, from a path rooted in this layout, is replaced with the result of applying the given operation.default MemoryLayoutMemoryLayout. select(MemoryLayout.PathElement... elements)Selects the layout from a path rooted in this layout.default VarHandleMemoryLayout. 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.