Uses of Interface
java.lang.foreign.Linker.Option
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of Linker.OptionPREVIEW in java.lang.foreign
Modifier and TypeMethodDescriptionstatic Linker.OptionPREVIEW
Linker.Option.captureCallState
(String... capturedState) Returns a linker option used to save portions of the execution state immediately after calling a foreign function associated with a downcall method handle, before it can be overwritten by the Java runtime, or read through conventional means.static Linker.OptionPREVIEW
Linker.Option.firstVariadicArg
(int index) Returns a linker option used to denote the index indicating the start of the variadic arguments passed to the function described by the function descriptor associated with a downcall linkage request.static Linker.OptionPREVIEW
Linker.Option.isTrivial()
Returns a linker option used to mark a foreign function as trivial.Modifier and TypeMethodDescriptionLinker.downcallHandle
(FunctionDescriptorPREVIEW function, Linker.OptionPREVIEW... options) Creates a method handle which is used to call a foreign function with the given signature.Linker.downcallHandle
(MemorySegmentPREVIEW address, FunctionDescriptorPREVIEW function, Linker.OptionPREVIEW... options) Creates a method handle which is used to call a foreign function with the given signature and address.Linker.upcallStub
(MethodHandle target, FunctionDescriptorPREVIEW function, ArenaPREVIEW arena, Linker.OptionPREVIEW... options) Creates an upcall stub which can be passed to other foreign functions as a function pointer, associated with the given arena.