|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jniwrapper.Parameter
com.jniwrapper.AbstractInteger
com.jniwrapper.Int8
Represents an 8-bit integer (byte) value and type.
| Field Summary |
| Fields inherited from class com.jniwrapper.Parameter |
LICENSE_TYPE, V |
| Constructor Summary | |
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. |
|
| Method Summary | |
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. |
| Methods inherited from class com.jniwrapper.Parameter |
acceptIOPerformer, asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, read, read, setDataBuffer, toByteArray, write |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public 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.
| Method Detail |
public int getLength()
Parametersizeof() operator.
getLength in class Parameterpublic java.lang.Object clone()
clone in class Parameterpublic long getValue()
IntegerParameterlong
public void setValue(long val)
IntegerParameter
public void write(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
throws MemoryAccessViolationException
Parameter
write in class ParameterMemoryAccessViolationException
public void read(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
throws MemoryAccessViolationException
Parameter
read in class ParameterMemoryAccessViolationException
public void push(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
throws MemoryAccessViolationException
Parameter
push in class ParameterMemoryAccessViolationException
public void pop(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
throws MemoryAccessViolationException
Parameter
pop in class ParameterMemoryAccessViolationExceptionpublic boolean equals(java.lang.Object obj)
IntegerParameter by their value.
equals in class Parameterobj - a value to compare this object to.
public int hashCode()
hashCode in class Parameterpublic java.lang.Long toLong()
public java.lang.String getDebugInfo()
Parameter
getDebugInfo in class Parameterpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||