Class GmpTypeMapper.MPQToNativeConverter

java.lang.Object
it.unich.jgmp.nativelib.GmpTypeMapper.MPQToNativeConverter
All Implemented Interfaces:
com.sun.jna.ToNativeConverter
Enclosing class:
GmpTypeMapper

private static class GmpTypeMapper.MPQToNativeConverter extends 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.
  • Constructor Details

    • MPQToNativeConverter

      private MPQToNativeConverter()
  • Method Details

    • nativeType

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

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