StdCallFunctionMapper (JNA API)

Overview | Package | Class | Tree | Deprecated | Index | Help
| JNA API 3.3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jna.win32
Class StdCallFunctionMapper

    java.lang.Object
      com.sun.jna.win32.StdCallFunctionMapper

All Implemented Interfaces:
  FunctionMapper

    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(Class)`.

Constructor Summary
`StdCallFunctionMapper()`

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StdCallFunctionMapper

    public StdCallFunctionMapper()

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.

  Specified by:
    `getFunctionName` in interface `FunctionMapper`

Overview | Package | Class | Tree | Deprecated | Index | Help
| JNA API 3.3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007-2010 Timothy Wall. All Rights Reserved.