org.cinvoke
Class NativeLong

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

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

Used to send or read values of the C type 'long'. 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
NativeLong(long val)
          Initializes a NativeLong 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

NativeLong

public NativeLong(long val)
Initializes a NativeLong 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()