Uses of Interface
java.lang.foreign.FunctionDescriptor
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of FunctionDescriptorPREVIEW in java.lang.foreign
Modifier and TypeMethodDescriptionFunctionDescriptor.appendArgumentLayouts
(MemoryLayoutPREVIEW... addedLayouts) Returns a function descriptor with the given argument layouts appended to the argument layouts of this function descriptor.FunctionDescriptor.changeReturnLayout
(MemoryLayoutPREVIEW newReturn) Returns a function descriptor with the provided return layout.FunctionDescriptor.dropReturnLayout()
Returns a new function descriptor, with no return layout.FunctionDescriptor.insertArgumentLayouts
(int index, MemoryLayoutPREVIEW... addedLayouts) Returns a function descriptor with the given argument layouts inserted at the given index, into the argument layout array of this function descriptor.static FunctionDescriptorPREVIEW
FunctionDescriptor.of
(MemoryLayoutPREVIEW resLayout, MemoryLayoutPREVIEW... argLayouts) Creates a function descriptor with the given return and argument layouts.static FunctionDescriptorPREVIEW
FunctionDescriptor.ofVoid
(MemoryLayoutPREVIEW... argLayouts) Creates a function descriptor with the given argument layouts and no return layout.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.