Pointers to such functions can be passed to native APIs as callbacks.
| Modifier and Type | Method and Description |
|---|---|
| public default long | address()
Implements org. long value.
|
| public void | callback(long
a pointer to the memory used for the function's return value.
ret, long If the function is declared as returning Otherwise, the callback must fill the object to which this points, following the same special promotion behavior as
a vector of pointers to memory holding the arguments to the function args)The Java method that will be called from native code when the native callback function is invoked. |
| public FFICIF | Returns: the CIF structure for this callback functionReturns the libffi Call Interface for this callback function. |
| address | back to summary |
|---|---|
| public default long address() Implements org. Doc from org. Returns the raw pointer address as a
| |
| callback | back to summary |
|---|---|
| public void callback(long ret, long args) The Java method that will be called from native code when the native callback function is invoked.
| |
| getCallInterface | back to summary |
|---|---|
| public FFICIF getCallInterface() Returns the libffi Call Interface for this callback function. [INTERNAL API]
| |