# Uses of Interface
java.lang.foreign.Linker.Option

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

- ## Uses of Linker.OptionPREVIEW in java.lang.foreign

  Subinterfaces of Linker.OptionPREVIEW in java.lang.foreign
  Modifier and Type
  Interface
  Description
  `static interface`
  `Linker.Option.CaptureCallStatePREVIEW`
  Preview.
  A linker option for saving portions of the execution state immediately after calling a foreign function associated with a downcall method handle, before it can be overwritten by the runtime, or read through conventional means.
  Methods in java.lang.foreign that return Linker.OptionPREVIEW
  Modifier and Type
  Method
  Description
  `static Linker.OptionPREVIEW`
  Linker.Option.`firstVariadicArg(int index)`
  Returns a linker option used to denote the index of the first variadic argument layout in a foreign function call.
  Methods in java.lang.foreign with parameters of type Linker.OptionPREVIEW
  Modifier and Type
  Method
  Description
  `MethodHandle`
  Linker.`downcallHandle(FunctionDescriptorPREVIEW function, Linker.OptionPREVIEW... options)`
  Creates a method handle which can be used to call a foreign function with the given signature.
  `default MethodHandle`
  Linker.`downcallHandle(MemorySegmentPREVIEW symbol, FunctionDescriptorPREVIEW function, Linker.OptionPREVIEW... options)`
  Creates a method handle which can be used to call a foreign function with the given signature and address.