インタフェースjava.lang.foreign.FunctionDescriptorの
使用
FunctionDescriptorPREVIEWを使用するパッケージ
-
java.lang.foreignでのFunctionDescriptorPREVIEWの使用
修飾子と型メソッド説明FunctionDescriptor.appendArgumentLayouts
(MemoryLayoutPREVIEW... addedLayouts) 指定された引数レイアウトがこの関数記述子の引数レイアウト配列に付加された関数記述子を返します。FunctionDescriptor.changeReturnLayout
(MemoryLayoutPREVIEW newReturn) 指定されたメモリー・レイアウトを新しい戻りレイアウトとして関数記述子を返します。FunctionDescriptor.dropReturnLayout()
戻りレイアウトが削除された関数記述子を返します。FunctionDescriptor.insertArgumentLayouts
(int index, MemoryLayoutPREVIEW... addedLayouts) 指定された索引に挿入された引数レイアウトを持つ関数記述子を、この関数記述子の引数レイアウト配列に戻します。static FunctionDescriptorPREVIEW
FunctionDescriptor.of
(MemoryLayoutPREVIEW resLayout, MemoryLayoutPREVIEW... argLayouts) 指定された戻りおよび引数のレイアウトを使用して関数記述子を作成します。static FunctionDescriptorPREVIEW
FunctionDescriptor.ofVoid
(MemoryLayoutPREVIEW... argLayouts) 指定された引数レイアウトを持つ関数記述子を作成し、戻りレイアウトは作成しません。FunctionDescriptorPREVIEW型のパラメータを持つjava.lang.foreignのメソッド修飾子と型メソッド説明Linker.downcallHandle
(FunctionDescriptorPREVIEW function, Linker.OptionPREVIEW... options) 指定されたシグネチャで外部関数を呼び出すために使用できるメソッド・ハンドルを作成します。default MethodHandle
Linker.downcallHandle
(MemorySegmentPREVIEW symbol, FunctionDescriptorPREVIEW function, Linker.OptionPREVIEW... options) 指定されたシグネチャおよびアドレスで外部関数を呼び出すために使用できるメソッド・ハンドルを作成します。Linker.upcallStub
(MethodHandle target, FunctionDescriptorPREVIEW function, SegmentScopePREVIEW scope) 指定されたスコープに関連付けられた関数ポインタとしてほかの外部関数に渡すことができるスタブを作成します。