Top Description Constructors Methods
com.sun.jna.win32

public Class StdCallFunctionMapper

extends Object
implements FunctionMapper
Class Inheritance
All Implemented Interfaces
com.sun.jna.FunctionMapper
Imports
java.lang.reflect.Method, com.sun.jna.Function, .FunctionMapper, .Native, .NativeLibrary, .NativeMapped, .NativeMappedConverter, .Pointer

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 Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected int

Returns:

number of native bytes used for this class on the stack
getArgumentNativeStackSize
(Class<?>
Java class of a parameter
cls
)

Override this to handle any custom class mappings.

public String

Returns:

The decorated name
getFunctionName
(NativeLibrary
The NativeLibrary instance
library
,
Method
The invoked Method
method
)

Implements com.sun.jna.FunctionMapper.getFunctionName.

Convert the given Java method into a decorated stdcall name, if possible.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StdCallFunctionMapperback to summary
public StdCallFunctionMapper()

Method Detail

getArgumentNativeStackSizeback to summary
protected int getArgumentNativeStackSize(Class<?> cls)

Override this to handle any custom class mappings.

Parameters
cls:Class<?>

Java class of a parameter

Returns:int

number of native bytes used for this class on the stack

getFunctionNameback to summary
public String getFunctionName(NativeLibrary library, Method method)

Implements com.sun.jna.FunctionMapper.getFunctionName.

Convert the given Java method into a decorated stdcall name, if possible.

Parameters
library:NativeLibrary

The NativeLibrary instance

method:Method

The invoked Method

Returns:String

The decorated name

Annotations
@Override