com.ochafik.lang.jnaerator.runtime
Class NativeSize

java.lang.Object
  extended by java.lang.Number
      extended by com.sun.jna.IntegerType
          extended by com.ochafik.lang.jnaerator.runtime.NativeSize
All Implemented Interfaces:
NativeMapped, Serializable

public class NativeSize
extends 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
static int SIZE
          Size of a size_t integer, in bytes.
 
Constructor Summary
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
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 final 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.



Copyright © 2009. All Rights Reserved.