Uses of Interface java.lang.foreign.MemoryLayout.PathElement (Java SE 21 & JDK 21)
Description: use: module: java.base, package: java.lang.foreign, interface: MemoryLayout, interface: PathElement

# Uses of Interface
java.lang.foreign.MemoryLayout.PathElement

Packages that use MemoryLayout.PathElementPREVIEW
Package
Description
java.lang.foreign
Provides low-level access to memory and functions outside the Java runtime.

- ## Uses of MemoryLayout.PathElementPREVIEW in java.lang.foreign

  Methods in java.lang.foreign that return MemoryLayout.PathElementPREVIEW
  Modifier and Type
  Method
  Description
  `static MemoryLayout.PathElementPREVIEW`
  MemoryLayout.PathElement.`dereferenceElement()`
  Returns a path element which dereferences an address layout as its target layoutPREVIEW (where set).
  `static MemoryLayout.PathElementPREVIEW`
  MemoryLayout.PathElement.`groupElement(long index)`
  Returns a path element which selects a member layout with the given index in a group layout.
  `static MemoryLayout.PathElementPREVIEW`
  MemoryLayout.PathElement.`groupElement(String name)`
  Returns a path element which selects a member layout with the given name in a group layout.
  `static MemoryLayout.PathElementPREVIEW`
  MemoryLayout.PathElement.`sequenceElement()`
  Returns an open path element which selects an unspecified element layout in a sequence layout.
  `static MemoryLayout.PathElementPREVIEW`
  MemoryLayout.PathElement.`sequenceElement(long index)`
  Returns a path element which selects the element layout at the specified position in a sequence layout.
  `static MemoryLayout.PathElementPREVIEW`
  MemoryLayout.PathElement.`sequenceElement(long start, long step)`
  Returns an open path element which selects the element layout in a range of positions in a sequence layout.
  Methods in java.lang.foreign with parameters of type MemoryLayout.PathElementPREVIEW
  Modifier and Type
  Method
  Description
  `default long`
  MemoryLayout.`byteOffset(MemoryLayout.PathElementPREVIEW... 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.
  `default MethodHandle`
  MemoryLayout.`byteOffsetHandle(MemoryLayout.PathElementPREVIEW... 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.
  `default MemoryLayoutPREVIEW`
  MemoryLayout.`select(MemoryLayout.PathElementPREVIEW... elements)`
  Returns the layout selected from the provided path, where the initial layout in the path is this layout.
  `default MethodHandle`
  MemoryLayout.`sliceHandle(MemoryLayout.PathElementPREVIEW... elements)`
  Creates a method handle which, given a memory segment, returns a slicePREVIEW corresponding to the layout selected by the given layout path, where the initial layout in the path is this layout.
  `default VarHandle`
  MemoryLayout.`varHandle(MemoryLayout.PathElementPREVIEW... 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.