|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.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. 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 |
| 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 pointer value and referenced object. |
void |
subtract(int i)
Offsets this pointer by i bytes backward. |
protected void |
writePointer(DataBuffer stackBuffer,
int offset)
Writes pointer value using pointer arithmetic offset. |
| Methods inherited from class com.jniwrapper.Pointer |
acceptIOPerformer, asVoidPointer, checkMemHandleLength, clone, getLength, getPointerHandle, getReferencedObject, isNull, pop, push, read, read, readReferencedObject, setExternalSource, setNull, setReferencedObject, setReferencedObject, toString, write, write, writeReferencedObject |
| Methods inherited from class com.jniwrapper.Parameter |
asReturnValue, equals, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, setDataBuffer, toByteArray |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ArithmeticalPointer(Parameter ref)
ref - 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
NB: 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 | ||||||||||