Class GmpTypeMapper.MPZToNativeConverter

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

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

    • MPZToNativeConverter

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