Class NativeSize

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

    public class NativeSize
    extends com.sun.jna.IntegerType
    'size_t' C type (32 bits on 32 bits platforms, 64 bits on 64 bits platforms). Can be also used to model the 'long' C type for libraries known to be compiled with GCC or LLVM even on Windows. (NativeLong on Windows is only okay with MSVC++ libraries, as 'long' on Windows 64 bits will be 32 bits with MSVC++ and 64 bits with GCC/mingw)
    Author:
    ochafik
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int SIZE
      Size of a size_t integer, in bytes.
    • Constructor Summary

      Constructors 
      Constructor Description
      NativeSize()
      Create a zero-valued Size.
      NativeSize​(long value)
      Create a Size with the given 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

        public static int SIZE
        Size of a size_t integer, in bytes.
    • Constructor Detail

      • NativeSize

        public NativeSize()
        Create a zero-valued Size.
      • NativeSize

        public NativeSize​(long value)
        Create a Size with the given value.