org.cinvoke
Class NativeShort
java.lang.Object
org.cinvoke.NativeShort
- All Implemented Interfaces:
- java.io.Serializable
- public final class NativeShort
- extends java.lang.Object
- implements java.io.Serializable
Used to send or read values of the C type 'short'.
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 |
NativeShort(int val)
Initializes a NativeShort instance. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NativeShort
public NativeShort(int val)
- Initializes a NativeShort instance.
- Parameters:
val
- The value to marshal. Note that not all the bits in the int
value are guaranteed to be used by the called platform.
intValue
public int intValue()
- Returns a marshaled value.
- Returns:
- The marshaled value. Note that not all the bits in the int
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()