com.sun.jna.win32

Class StdCallFunctionMapper

public class StdCallFunctionMapper extends 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.

Method Summary
protected intgetArgumentNativeStackSize(Class cls)
Override this to handle any custom class mappings.
StringgetFunctionName(NativeLibrary library, Method method)
Convert the given Java method into a decorated stdcall name, if possible.

Method Detail

getArgumentNativeStackSize

protected int getArgumentNativeStackSize(Class cls)
Override this to handle any custom class mappings.

getFunctionName

public String getFunctionName(NativeLibrary library, Method method)
Convert the given Java method into a decorated stdcall name, if possible.
Copyright © 2007-2009 Timothy Wall. All Rights Reserved.