Class MpExpT

  • All Implemented Interfaces:
    com.sun.jna.NativeMapped, java.io.Serializable

    public class MpExpT
    extends com.sun.jna.IntegerType
    The native mp_exp_t data type, which may be a 32, 48 or 64 bit signed integer. Here we assume that its size is the same of a native long. This should work on almost every system, with the exception of some Cray's, where the native size of mp_size_t is 48 bit.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int SIZE
      The size of the native mp_exp_t data type.
    • Constructor Summary

      Constructors 
      Constructor Description
      MpExpT()
      Create an mp_size_t with value 0
      MpExpT​(long value)
      Create a mp_exp_t with the specified value.
    • Method Summary

      • Methods inherited from class com.sun.jna.IntegerType

        compare, compare, compare, doubleValue, equals, floatValue, fromNative, hashCode, intValue, longValue, nativeType, setValue, toNative, toString
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • SIZE

        static final int SIZE
        The size of the native mp_exp_t data type. We assume it to be equal to the size of a native long.
    • Constructor Detail

      • MpExpT

        public MpExpT()
        Create an mp_size_t with value 0
      • MpExpT

        public MpExpT​(long value)
        Create a mp_exp_t with the specified value. The value is truncated when mp_exp_t is not a 32 bit integer.