| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | registerForDowncall(Object
A desc, Object... java. to register for downcalls.An array of options)java. used for the downcalls.Registers the provided function descriptor and options pair at image build time for downcalls into foreign code. |
| public static void | registerForUpcall(Object
A desc, Object... java. to register for upcalls.An array of options)java. used for the upcalls.Registers the provided function descriptor and options pair at image build time for upcalls from foreign code. |
| RuntimeForeignAccess | back to summary |
|---|---|
| private RuntimeForeignAccess() | |
| registerForDowncall | back to summary |
|---|---|
| public static void registerForDowncall(Object desc, Object... options) Registers the provided function descriptor and options pair at image build time for downcalls
into foreign code. Required to get a downcall method handle using
Even though this method is weakly typed for compatibility reasons, runtime checks will be performed to ensure that the arguments have the expected type. It will be deprecated in favor of strongly typed variant as soon as possible.
| |
| registerForUpcall | back to summary |
|---|---|
| public static void registerForUpcall(Object desc, Object... options) Registers the provided function descriptor and options pair at image build time for upcalls
from foreign code. Required to get an upcall stub function pointer using
Even though this method is weakly typed for compatibility reasons, runtime checks will be performed to ensure that the arguments have the expected type. It will be deprecated in favor of strongly typed variant as soon as possible.
| |