com.jniwrapper
Class Pointer.OutOnly
java.lang.Object
|
+--com.jniwrapper.Parameter
|
+--com.jniwrapper.Pointer
|
+--com.jniwrapper.Pointer.OutOnly
- Enclosing class:
- Pointer
- public static class Pointer.OutOnly
- extends Pointer
Represents a pointer to object with undefined initial value.
Skips writing initial value of the referenced object.
Method Summary |
java.lang.Object |
clone()
|
void |
pop(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Default implementation, which does nothing
as most primitive types do nothing on pop. |
void |
push(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Writes a parameter to a function stacks |
void |
write(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Writes this parameter to a specified data source. |
Methods inherited from class com.jniwrapper.Pointer |
acceptIOPerformer, asVoidPointer, checkMemHandleLength, getLength, getPointerHandle, getReferencedObject, isNull, read, read, readPointer, readReferencedObject, setExternalSource, setNull, setReferencedObject, setReferencedObject, toString, write, writePointer, writeReferencedObject |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Pointer.OutOnly
public Pointer.OutOnly(Parameter ref)
- Constructs a new pointer to the given object. Constructed pointer is a
non-null pointer parameter that points to the memory area big enough
to hold the given object.
- Parameters:
ref
- referenced object.
clone
public java.lang.Object clone()
- Overrides:
clone
in class Pointer
write
public void write(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
throws MemoryAccessViolationException
- Description copied from class:
Parameter
- Writes this parameter to a specified data source.
- Overrides:
write
in class Pointer
MemoryAccessViolationException
push
public void push(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
- Description copied from class:
Parameter
- Writes a parameter to a function stacks
- Overrides:
push
in class Pointer
pop
public void pop(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
throws MemoryAccessViolationException
- Description copied from class:
Parameter
- Default implementation, which does nothing
as most primitive types do nothing on pop.
Reads a parameter from a function stack.
- Overrides:
pop
in class Pointer
MemoryAccessViolationException