org.cinvoke
Class NativeInt
java.lang.Object
org.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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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.
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()