org.cinvoke
Class NativeInt

java.lang.Object
  extended byorg.cinvoke.NativeInt
All Implemented Interfaces:
java.io.Serializable

public final class NativeInt
extends java.lang.Object
implements java.io.Serializable

Used to send or read values of the C type 'int'. The size of integer values in C can vary with the current native platform. Declaring native interfaces with this type will always marshal the corresponding values as the correct size.

See Also:
Serialized Form

Constructor Summary
NativeInt(long val)
          Initializes a NativeInt instance.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 long longValue()
          Returns a marshaled value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NativeInt

public NativeInt(long val)
Initializes a NativeInt instance.

Parameters:
val - The value to marshal. Note that not all the bits in the long value are guaranteed to be used by the called platform.
Method Detail

longValue

public long longValue()
Returns a marshaled value.

Returns:
The marshaled value. Note that not all the bits in the long value are guaranteed to be used by the called platform.

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

toString

public java.lang.String toString()