| Modifier and Type | Field and Description |
|---|---|
| private final CallContext | |
| pack-priv final long | |
| pack-priv final long | functionAddress
The address of the function |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Function(long
The native address of the function to invoke. address, CallContext callContext)Creates a new instance of |
| public | Function(long
The native address of the function to invoke. address, Type The return type of the native function. returnType, Type[] The parameter types the function accepts. paramTypes, CallingConvention The calling convention of the function. convention)Creates a new instance of |
| public | Function(long
The native address of the function to invoke. address, Type The return type of the native function. returnType, Type[] The parameter types the function accepts. paramTypes, CallingConvention The calling convention of the function. convention, boolean Whether the errno should be saved or not saveErrno)Creates a new instance of |
| public | Function(long
The native address of the function to invoke. address, Type The return type of the native function. returnType, int The number of fixed params for a variadic call. fixedParamCount, Type[] The parameter types the function accepts. paramTypes, CallingConvention The calling convention of the function. convention, boolean Whether the errno should be saved or not saveErrno)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final CallContext | |
| pack-priv final long | Returns: The address of the native function context struct.Gets the address of the function context. |
| public final long | |
| public final int | Returns: The number of parameters the native function accepts.Gets the number of parameters the native function accepts. |
| public final Type | Returns: TheType of the parameter.The index of the parameter in the function signature index)Gets the type of a parameter. |
| public final int | Returns: The number of bytes required to store all paraameters of this function.Gets the number of bytes required to pack all the parameters this function accepts, into a region of memory. |
| public final Type | Returns: The native return type of this function.Gets the native return type of this function. |
| callContext | back to summary |
|---|---|
| private final CallContext callContext | |
| contextAddress | back to summary |
|---|---|
| pack-priv final long contextAddress | |
| functionAddress | back to summary |
|---|---|
| pack-priv final long functionAddress The address of the function | |
| Function | back to summary |
|---|---|
| public Function(long address, Type returnType, Type... paramTypes) Creates a new instance of | |
| Function | back to summary |
|---|---|
| public Function(long address, CallContext callContext) Creates a new instance of
| |
| Function | back to summary |
|---|---|
| public Function(long address, Type returnType, Type[] paramTypes, CallingConvention convention) Creates a new instance of
| |
| Function | back to summary |
|---|---|
| public Function(long address, Type returnType, Type[] paramTypes, CallingConvention convention, boolean saveErrno) Creates a new instance of
| |
| Function | back to summary |
|---|---|
| public Function(long address, Type returnType, int fixedParamCount, Type[] paramTypes, CallingConvention convention, boolean saveErrno) Creates a new instance of
| |
| dispose | back to summary |
|---|---|
| public final void dispose()
Deprecated
| |
| getCallContext | back to summary |
|---|---|
| public final CallContext getCallContext() | |
| getContextAddress | back to summary |
|---|---|
| pack-priv final long getContextAddress() Gets the address of the function context.
| |
| getFunctionAddress | back to summary |
|---|---|
| public final long getFunctionAddress() Gets the address of the function.
| |
| getParameterCount | back to summary |
|---|---|
| public final int getParameterCount() Gets the number of parameters the native function accepts.
| |
| getParameterType | back to summary |
|---|---|
| public final Type getParameterType(int index) Gets the type of a parameter.
| |
| getRawParameterSize | back to summary |
|---|---|
| public final int getRawParameterSize() Gets the number of bytes required to pack all the parameters this function accepts, into a region of memory.
| |
| getReturnType | back to summary |
|---|---|
| public final Type getReturnType() Gets the native return type of this function.
| |