Class GmpTypeMapper.MPQToNativeConverter

  • All Implemented Interfaces:
    com.sun.jna.ToNativeConverter
    Enclosing class:
    GmpTypeMapper

    private static class GmpTypeMapper.MPQToNativeConverter
    extends java.lang.Object
    implements com.sun.jna.ToNativeConverter
    A converter from MPQ to the native pointer type. It is used by the printf / scanf functions to correctly handle GMP types.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> nativeType()  
      java.lang.Object toNative​(java.lang.Object value, com.sun.jna.ToNativeContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MPQToNativeConverter

        private MPQToNativeConverter()
    • Method Detail

      • nativeType

        public java.lang.Class<?> nativeType()
        Specified by:
        nativeType in interface com.sun.jna.ToNativeConverter
      • toNative

        public java.lang.Object toNative​(java.lang.Object value,
                                         com.sun.jna.ToNativeContext context)
        Specified by:
        toNative in interface com.sun.jna.ToNativeConverter