|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jniwrapper.Parameter | +--com.jniwrapper.AbstractInteger | +--com.jniwrapper.Int16
Represents 16-bit integer value and type.
Constructor Summary | |
Int16()
Constructs a new 16-bit integer parameter. |
|
Int16(IntegerParameter value)
Constructs new instance with the same value as in the passed IntegerParameter . |
|
Int16(short value)
Constructs a new 16-bit integer parameter. |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
Compares two instances as IntegerParameter by their value. |
int |
getLength()
Returns a length of the parameter in memory. |
long |
getValue()
Returns integer value converted to long |
void |
read(DataBuffer stackBuffer,
int offset)
Reads this parameter from a specified data source. |
void |
setValue(long val)
Sets integer value |
java.lang.String |
toString()
|
void |
write(DataBuffer stackBuffer,
int offset)
Writes this parameter to a specified data source. |
Methods inherited from class com.jniwrapper.Parameter |
acceptIOPerformer, asReturnValue, getAlignedLength, getBuffer, getOffset, indent, pop, push, read, setBuffer, toByteArray, write |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Int16()
public Int16(short value)
value
- initial valuepublic Int16(IntegerParameter value)
IntegerParameter
.
Values are converted to short
type, and values beyond the
short
range may lose significant bits.
Method Detail |
public int getLength()
Parameter
sizeof()
operator.
getLength
in class Parameter
public java.lang.Object clone()
clone
in class Parameter
public long getValue()
IntegerParameter
long
public void setValue(long val)
IntegerParameter
public void write(DataBuffer stackBuffer, int offset) throws MemoryAccessViolationException
Parameter
write
in class Parameter
MemoryAccessViolationException
public void read(DataBuffer stackBuffer, int offset) throws MemoryAccessViolationException
Parameter
read
in class Parameter
MemoryAccessViolationException
public boolean equals(java.lang.Object obj)
IntegerParameter
by their value.
equals
in class Parameter
obj
- value to compare this object to.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |