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, java.nio.Buffer, .ByteBuffer, com.sun.jna.Callback, .FunctionMapper, .Native, .NativeLibrary, .NativeLong, .NativeMapped, .NativeMappedConverter, .Pointer, .PointerType, .Structure, .WString

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
getArgumentNativeStackSize(Class<T> cls)

Override this to handle any custom class mappings.

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.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StdCallFunctionMapperback to summary
public StdCallFunctionMapper()

Method Detail

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

Override this to handle any custom class mappings.

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.