Skip navigation links
JNA API 3.5.2-SNAPSHOT
com.sun.jna.win32

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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected int getArgumentNativeStackSize(java.lang.Class cls)
      Override this to handle any custom class mappings.
      java.lang.String getFunctionName(NativeLibrary library, java.lang.reflect.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(java.lang.Class cls)
        Override this to handle any custom class mappings.
      • getFunctionName

        public java.lang.String getFunctionName(NativeLibrary library,
                                                java.lang.reflect.Method method)
        Convert the given Java method into a decorated stdcall name, if possible.
        Specified by:
        getFunctionName in interface FunctionMapper
JNA API 3.5.2-SNAPSHOT

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