|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.Parameter com.jniwrapper.Int32
public class Int32
Represents a 32-bit integer value and type.
Field Summary |
---|
Fields inherited from class com.jniwrapper.Parameter |
---|
LICENSE_TYPE, V |
Constructor Summary | |
---|---|
Int32()
Constructs a new 32-bit integer parameter. |
|
Int32(int value)
Constructs a new 32-bit integer parameter. |
|
Int32(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 |
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, pop, push, read, read, setDataBuffer, toByteArray, write |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Int32()
public Int32(int value)
value
- initial value.public Int32(IntegerParameter value)
IntegerParameter
. Values are converted to the
int
type, and values beyond the int
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, 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 boolean equals(java.lang.Object obj)
IntegerParameter
by their value.
equals
in class Parameter
obj
- a value to compare this object to.
public int hashCode()
hashCode
in class Parameter
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |