public class StdCallFunctionMapper extends 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(Class<?> cls)
Override this to handle any custom class mappings.
|
String |
getFunctionName(NativeLibrary library,
Method method)
Convert the given Java method into a decorated
stdcall name, if possible. |
protected int getArgumentNativeStackSize(Class<?> cls)
cls
- Java class of a parameterpublic String getFunctionName(NativeLibrary library, Method method)
stdcall
name, if possible.getFunctionName
in interface FunctionMapper
library
- The NativeLibrary
instancemethod
- The invoked Method