Uses of Interface
java.lang.foreign.MemoryLayout.PathElement
Packages that use MemoryLayout.PathElement
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of MemoryLayout.PathElement in java.lang.foreign
Methods in java.lang.foreign that return MemoryLayout.PathElementModifier and TypeMethodDescriptionstatic MemoryLayout.PathElementMemoryLayout.PathElement.dereferenceElement()Returns a path element that selects the target layout of an address layout (where set).static MemoryLayout.PathElementMemoryLayout.PathElement.groupElement(long index) Returns a path element that selects a member layout with the given index in a group layout.static MemoryLayout.PathElementMemoryLayout.PathElement.groupElement(String name) Returns a path element which selects a member layout with the given name in a group layout.static MemoryLayout.PathElementMemoryLayout.PathElement.sequenceElement()Returns an open path element that selects an unspecified element layout in a sequence layout.static MemoryLayout.PathElementMemoryLayout.PathElement.sequenceElement(long index) Returns a path element which selects the element layout at the specified index in a sequence layout.static MemoryLayout.PathElementMemoryLayout.PathElement.sequenceElement(long start, long step) Returns an open path element that selects the element layout in a range of positions in a sequence layout.Methods in java.lang.foreign with parameters of type MemoryLayout.PathElementModifier and TypeMethodDescriptionMemoryLayout.arrayElementVarHandle(MemoryLayout.PathElement... elements) Creates a var handle that accesses adjacent elements in a memory segment at offsets selected by the given layout path, where the accessed elements have this layout, and where the initial layout in the path is this layout.longMemoryLayout.byteOffset(MemoryLayout.PathElement... elements) Computes the offset, in bytes, of the layout selected by the given layout path, where the initial layout in the path is this layout.MemoryLayout.byteOffsetHandle(MemoryLayout.PathElement... elements) Creates a method handle that computes the offset, in bytes, of the layout selected by the given layout path, where the initial layout in the path is this layout.MemoryLayout.select(MemoryLayout.PathElement... elements) Returns the layout selected from the provided path, where the initial layout in the path is this layout.MemoryLayout.sliceHandle(MemoryLayout.PathElement... elements) Creates a method handle which, given a memory segment, returns a slice corresponding to the layout selected by the given layout path, where the initial layout in the path is this layout.MemoryLayout.varHandle(MemoryLayout.PathElement... elements) Creates a var handle that accesses a memory segment at the offset selected by the given layout path, where the initial layout in the path is this layout.