com.jniwrapper
Class ResizingPointer

java.lang.Object
  |
  +--com.jniwrapper.Parameter
        |
        +--com.jniwrapper.Pointer
              |
              +--com.jniwrapper.ResizingPointer

public class ResizingPointer
extends Pointer

A pointer to an array that can be resized (reallocated) on the native side.


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
ResizingPointer(ArrayParameter array)
          Constructs a new pointer to the given array.
ResizingPointer(ArrayParameter array, boolean isNull)
          Constructs a new pointer to the given array.
 
Method Summary
 void read(DataBuffer stackBuffer, int offset)
          Reads this parameter from a specified data source.
 void readArray(int count)
          Reads the resized array.
 
Methods inherited from class com.jniwrapper.Pointer
acceptIOPerformer, checkMemHandleLength, clone, getLength, getPointerHandle, getReferencedObject, isNull, pop, read, readPointer, readReferencedObject, setExternalSource, setNull, setReferencedObject, setReferencedObject, toString, write, write, writePointer, writeReferencedObject
 
Methods inherited from class com.jniwrapper.Parameter
asReturnValue, equals, getAlignedLength, getBuffer, getOffset, indent, push, setBuffer, toByteArray
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResizingPointer

public ResizingPointer(ArrayParameter array)
Constructs a new pointer to the given array.


ResizingPointer

public ResizingPointer(ArrayParameter array,
                       boolean isNull)
Constructs a new pointer to the given array. This pointer will initially be null if isNull is true.

Method Detail

read

public void read(DataBuffer stackBuffer,
                 int offset)
          throws MemoryAccessViolationException
Description copied from class: Parameter
Reads this parameter from a specified data source.

Overrides:
read in class Pointer
MemoryAccessViolationException

readArray

public void readArray(int count)
Reads the resized array.

Parameters:
count - new element count.