Class GmpTypeMapper.MPFToNativeConverter

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

private static class GmpTypeMapper.MPFToNativeConverter extends Object implements com.sun.jna.ToNativeConverter
A converter from MPF to the native pointer type. It is used by the printf / scanf functions to correctly handle GMP types.
  • Constructor Details

    • MPFToNativeConverter

      private MPFToNativeConverter()
  • 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