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 layout array of this function descriptor.FunctionDescriptor.changeReturnLayout
(MemoryLayoutPREVIEW newReturn) Returns a function descriptor with the given memory layout as the new return layout.FunctionDescriptor.dropReturnLayout()
Returns a function descriptor with the return layout dropped.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 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.Linker.upcallStub
(MethodHandle target, FunctionDescriptorPREVIEW function, SegmentScopePREVIEW scope) Creates a stub which can be passed to other foreign functions as a function pointer, associated with the given scope.