Class NativeSize
java.lang.Object
java.lang.Number
com.sun.jna.IntegerType
com.ochafik.lang.jnaerator.runtime.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 intSIZESize 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, toStringMethods inherited from class java.lang.Number
byteValue, shortValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
SIZE
public static int SIZESize of a size_t integer, in bytes.
-
-
Constructor Details
-
NativeSize
public NativeSize()Create a zero-valued Size. -
NativeSize
public NativeSize(long value)Create a Size with the given value.
-