Uses of Interface
jdk.incubator.foreign.MemoryLayout.PathElement
Packages that use MemoryLayout.PathElement
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of MemoryLayout.PathElement in jdk.incubator.foreign
Methods in jdk.incubator.foreign that return MemoryLayout.PathElementModifier and TypeMethodDescriptionstatic 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.PathElementModifier and TypeMethodDescriptiondefault 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 MethodHandleMemoryLayout.bitOffsetHandle(MemoryLayout.PathElement... elements) Creates a method handle that can be used to compute 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 MethodHandleMemoryLayout.byteOffsetHandle(MemoryLayout.PathElement... elements) Creates a method handle that can be used to compute 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 MethodHandleMemoryLayout.sliceHandle(MemoryLayout.PathElement... elements) Creates a method handle which, given a memory segment, returns a slice corresponding to the layout selected by a given layout path, where the path is considered 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.