インタフェースjava.lang.foreign.FunctionDescriptorの
使用
-
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) 指定された引数レイアウトを持つ関数記述子を作成し、戻りレイアウトは作成しません。修飾子と型メソッド説明Linker.downcallHandle
(FunctionDescriptorPREVIEW function, Linker.OptionPREVIEW... options) 指定されたシグネチャで外部関数を呼び出すために使用されるメソッド・ハンドルを作成します。Linker.downcallHandle
(MemorySegmentPREVIEW address, FunctionDescriptorPREVIEW function, Linker.OptionPREVIEW... options) 指定されたシグネチャとアドレスで外部関数を呼び出すために使用されるメソッド・ハンドルを作成します。Linker.upcallStub
(MethodHandle target, FunctionDescriptorPREVIEW function, ArenaPREVIEW arena, Linker.OptionPREVIEW... options) 指定されたアリーナに関連付けられた関数ポインタとして、ほかの外部関数に渡すことができるアップコール・スタブを作成します。