Class MpSizeT
java.lang.Object
java.lang.Number
com.sun.jna.IntegerType
it.unich.jgmp.nativelib.MpSizeT
- All Implemented Interfaces:
com.sun.jna.NativeMapped, Serializable
public class MpSizeT
extends com.sun.jna.IntegerType
The native
mp_size_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:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intThe size of the nativemp_size_tdata type. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.IntegerType
compare, compare, compare, doubleValue, equals, floatValue, fromNative, hashCode, intValue, longValue, nativeType, setValue, toNative, toStringMethods inherited from class Number
byteValue, shortValue
-
Field Details
-
SIZE
static final int SIZEThe size of the nativemp_size_tdata type. We assume it to be equal to the size of a native long.
-
-
Constructor Details
-
MpSizeT
public MpSizeT()Create anmp_size_twith value 0 -
MpSizeT
public MpSizeT(long value) Create amp_size_twith the specifiedvalue. The value is truncated whenmp_size_tis not a 32 bit integer.
-