public class NativeShort extends NativeNumber
Modifier and Type | Field and Description |
---|---|
static NativeShortType |
META
The meta class instance
|
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT
Modifier | Constructor and Description |
---|---|
|
NativeShort()
Create a new wrapper
|
protected |
NativeShort(INativeHandle handle) |
|
NativeShort(short value)
Create a new wrapper
|
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
This as a java primitive byte value.
|
static NativeShort |
createFromAddress(long address) |
INativeType |
getNativeType()
The meta information and behavior for the NativeObject.
|
java.lang.Object |
getValue()
A Java side representation from the memory.
|
int |
intValue()
This as a java primitive int value.
|
long |
longValue()
This as a java primitive long value.
|
void |
setValue(java.lang.Object value)
Assign (and marshall to memory) the Java side representation.
|
void |
setValue(short value) |
short |
shortValue()
This as a java primitive short value.
|
java.lang.String |
toString() |
getByteCount
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString
public static final NativeShortType META
public NativeShort()
protected NativeShort(INativeHandle handle)
public NativeShort(short value)
public static NativeShort createFromAddress(long address)
public byte byteValue()
NativeNumber
byteValue
in class NativeNumber
public INativeType getNativeType()
NativeObject
There is exactly one meta instance for all NativeObject instances of a certain type.
getNativeType
in interface INativeObject
getNativeType
in class NativeObject
public java.lang.Object getValue()
INativeObject
INativeObject
.public int intValue()
NativeNumber
intValue
in class NativeNumber
public long longValue()
NativeNumber
longValue
in class NativeNumber
public void setValue(java.lang.Object value)
INativeObject
value
- The new Java value.public void setValue(short value)
public short shortValue()
NativeNumber
shortValue
in class NativeNumber
public java.lang.String toString()
toString
in class java.lang.Object