Package com.sun.jna.win32
Class StdCallFunctionMapper
- java.lang.Object
- 
- com.sun.jna.win32.StdCallFunctionMapper
 
- 
- All Implemented Interfaces:
- FunctionMapper
 
 public class StdCallFunctionMapper extends java.lang.Object implements FunctionMapper Provides mapping from simple method names to w32 stdcall-decorated names where the name suffix is "@" followed by the number of bytes popped by the called function.NOTE: if you use custom type mapping for primitive types, you may need to override getArgumentNativeStackSize(Class).
- 
- 
Constructor SummaryConstructors Constructor Description StdCallFunctionMapper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetArgumentNativeStackSize(java.lang.Class<?> cls)Override this to handle any custom class mappings.java.lang.StringgetFunctionName(NativeLibrary library, java.lang.reflect.Method method)Convert the given Java method into a decoratedstdcallname, if possible.
 
- 
- 
- 
Method Detail- 
getArgumentNativeStackSizeprotected int getArgumentNativeStackSize(java.lang.Class<?> cls) Override this to handle any custom class mappings.- Parameters:
- cls- Java class of a parameter
- Returns:
- number of native bytes used for this class on the stack
 
 - 
getFunctionNamepublic java.lang.String getFunctionName(NativeLibrary library, java.lang.reflect.Method method) Convert the given Java method into a decoratedstdcallname, if possible.- Specified by:
- getFunctionNamein interface- FunctionMapper
- Parameters:
- library- The- NativeLibraryinstance
- method- The invoked- Method
- Returns:
- The decorated name
 
 
- 
 
-