public class Int16 extends Parameter
LICENSE_TYPE, V| Constructor and Description |
|---|
Int16()
Constructs a new 16-bit integer parameter.
|
Int16(int value)
Constructs a new 16-bit integer parameter.
|
Int16(IntegerParameter value)
Constructs a new instance with the same value as in the passed
IntegerParameter. |
Int16(short value)
Constructs a new 16-bit integer parameter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj)
Compares two instances as
IntegerParameter by their value. |
java.lang.String |
getDebugInfo()
Return debug info for JNIWrapper parameter.
|
int |
getLength()
Returns the length of the parameter in memory.
|
long |
getValue()
Returns an integer value converted to
long |
int |
hashCode() |
void |
pop(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Default implementation that does nothing because most primitive types do
nothing on pop.
|
void |
push(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Writes a parameter to a function stacks.
|
void |
read(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Reads this parameter from a specified data source.
|
void |
setValue(long val)
Sets an integer value.
|
java.lang.Long |
toLong() |
java.lang.String |
toString() |
void |
write(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Writes this parameter to a specified data source.
|
acceptIOPerformer, asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, read, read, setDataBuffer, toByteArray, writepublic Int16()
public Int16(short value)
value - initial valuepublic Int16(int value)
value - initial valuepublic Int16(IntegerParameter value)
IntegerParameter. Values are converted to the
short type, and values beyond the short range
may lose significant bits.public int getLength()
Parametersizeof() operator.public long getValue()
IntegerParameterlongpublic void setValue(long val)
IntegerParameterpublic void write(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameterwrite in class ParameterMemoryAccessViolationExceptionpublic void read(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameterread in class ParameterMemoryAccessViolationExceptionpublic void push(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameterpush in class ParameterMemoryAccessViolationExceptionpublic void pop(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameterpop in class ParameterMemoryAccessViolationExceptionpublic boolean equals(java.lang.Object obj)
IntegerParameter by their value.public java.lang.Long toLong()
public java.lang.String getDebugInfo()
ParametergetDebugInfo in class Parameterpublic java.lang.String toString()
toString in class java.lang.Object