|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jniwrapper.Parameter
com.jniwrapper.Pointer
com.jniwrapper.ArithmeticalPointer
Pointer to a place within an allocated structure that handles reading and writing of offset pointer values. A referenced object is always read and written at the same location.
| Nested Class Summary |
| Nested classes inherited from class com.jniwrapper.Pointer |
Pointer.Const, Pointer.OutOnly, Pointer.Void |
| Field Summary |
| Fields inherited from class com.jniwrapper.Pointer |
POINTER_LENGTH |
| Fields inherited from class com.jniwrapper.Parameter |
LICENSE_TYPE, V |
| Constructor Summary | |
ArithmeticalPointer(Parameter ref)
Constructs a pointer to a given object. |
|
| Method Summary | |
void |
add(int i)
Offsets this pointer by i bytes forward. |
int |
getArithmeticOffset()
Returns offset in bytes of this pointer from its initial value. |
protected void |
readPointer(DataBuffer stackBuffer,
int offset)
Reads a pointer value and referenced object. |
void |
subtract(int i)
Offsets this pointer by i bytes backward. |
protected void |
writePointer(DataBuffer stackBuffer,
int offset)
Writes a pointer value using pointer arithmetic offset. |
| Methods inherited from class com.jniwrapper.Pointer |
acceptIOPerformer, asTypedPointer, asVoidPointer, castTo, castTo, checkMemHandleLength, clone, equals, getDebugInfo, getLength, getParameterClass, getPointerHandle, getReferencedObject, isNull, pop, push, read, read, readReferencedObject, setExternalSource, setNull, setReferencedObject, setReferencedObject, write, write, writeReferencedObject |
| Methods inherited from class com.jniwrapper.Parameter |
asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, hashCode, indent, read, setDataBuffer, toByteArray |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArithmeticalPointer(Parameter ref)
ref - a referenced object| Method Detail |
public void add(int i)
i - byte offsetpublic void subtract(int i)
i - byte offsetpublic int getArithmeticOffset()
protected void writePointer(DataBuffer stackBuffer,
int offset)
throws MemoryAccessViolationException
Note: The referenced object will be written by the original pointer, disregarding the offset value.
writePointer in class PointerstackBuffer - the buffer to write intooffset - the offset in the buffer to write pointer at
MemoryAccessViolationException
protected void readPointer(DataBuffer stackBuffer,
int offset)
throws MemoryAccessViolationException
readPointer in class PointerMemoryAccessViolationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||