public class Int8 extends Parameter
LICENSE_TYPE, V| Constructor and Description |
|---|
Int8()
Constructs a new 8-bit integer parameter.
|
Int8(byte value)
Constructs a new 8-bit integer parameter.
|
Int8(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, writepublic Int8()
public Int8(byte value)
value - initial value.public Int8(IntegerParameter value)
IntegerParameter. Values are converted to the
byte type, and values beyond the byte 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