| Constructor and Description |
|---|
CallContext(Type returnType,
Type... paramTypes)
Creates a new instance of Function with default calling convention.
|
CallContext(Type returnType,
Type[] paramTypes,
CallingConvention convention)
Creates a new instance of Function.
|
CallContext(Type returnType,
Type[] paramTypes,
CallingConvention convention,
boolean saveErrno)
Creates a new instance of Function.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected void |
finalize() |
int |
getParameterCount()
Gets the number of parameters the native function accepts.
|
Type |
getParameterType(int index)
Gets the type of a parameter.
|
int |
getRawParameterSize()
Gets the number of bytes required to pack all the parameters this function
accepts, into a region of memory.
|
Type |
getReturnType()
Gets the native return type of this function.
|
public CallContext(Type returnType, Type... paramTypes)
address - The native address of the function to invoke.returnType - The return type of the native function.parameterTypes - The parameter types the function accepts.public CallContext(Type returnType, Type[] paramTypes, CallingConvention convention)
address - The native address of the function to invoke.returnType - The return type of the native function.parameterTypes - The parameter types the function accepts.convention - The calling convention of the function.public CallContext(Type returnType, Type[] paramTypes, CallingConvention convention, boolean saveErrno)
address - The native address of the function to invoke.returnType - The return type of the native function.parameterTypes - The parameter types the function accepts.convention - The calling convention of the function.saveErrno - Whether the errno should be saved or notpublic final int getParameterCount()
getParameterCount in interface CallInfopublic final int getRawParameterSize()
getRawParameterSize in interface CallInfopublic final Type getReturnType()
getReturnType in interface CallInfopublic final Type getParameterType(int index)
getParameterType in interface CallInfoindex - The index of the parameter in the function signaturepublic final void dispose()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable