public class StdCallFunctionMapper extends java.lang.Object implements FunctionMapper
NOTE: if you use custom type mapping for primitive types, you may need to
override getArgumentNativeStackSize(Class)
.
Constructor and Description |
---|
StdCallFunctionMapper() |
Modifier and Type | Method and Description |
---|---|
protected int |
getArgumentNativeStackSize(java.lang.Class<?> cls)
Override this to handle any custom class mappings.
|
java.lang.String |
getFunctionName(NativeLibrary library,
java.lang.reflect.Method method)
Convert the given Java method into a decorated
stdcall name, if possible. |
protected int getArgumentNativeStackSize(java.lang.Class<?> cls)
cls
- Java class of a parameterpublic java.lang.String getFunctionName(NativeLibrary library, java.lang.reflect.Method method)
stdcall
name, if possible.getFunctionName
in interface FunctionMapper
library
- The NativeLibrary
instancemethod
- The invoked Method