public class UInt16 extends Parameter
LICENSE_TYPE, V
Constructor and Description |
---|
UInt16()
Constructs a new 16-bit unsigned parameter.
|
UInt16(int value)
Constructs a new 16-bit unsigned parameter.
|
UInt16(IntegerParameter value)
Constructs a new instance with the same value as in the passed
IntegerParameter . |
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, write
public UInt16()
public UInt16(int value)
value
- initial value.public UInt16(IntegerParameter value)
IntegerParameter
. Values are converted to the
int
type, and values beyond the int
range may
lose significant bits.public int getLength()
Parameter
sizeof()
operator.public long getValue()
IntegerParameter
long
public void setValue(long val)
IntegerParameter
public void write(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
write
in class Parameter
MemoryAccessViolationException
public void read(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
read
in class Parameter
MemoryAccessViolationException
public void push(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
push
in class Parameter
MemoryAccessViolationException
public void pop(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
pop
in class Parameter
MemoryAccessViolationException
public boolean equals(java.lang.Object obj)
IntegerParameter
by their value.public java.lang.Long toLong()
public java.lang.String getDebugInfo()
Parameter
getDebugInfo
in class Parameter
public java.lang.String toString()
toString
in class java.lang.Object