com.jniwrapper
Class Pointer.Const

java.lang.Object
  |
  +--com.jniwrapper.Parameter
        |
        +--com.jniwrapper.Pointer
              |
              +--com.jniwrapper.Pointer.Const
Enclosing class:
Pointer

public static class Pointer.Const
extends Pointer

Represents a pointer to constant object.


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
Pointer.Const(Parameter ref)
          Constructs a new pointer to the given object.
Pointer.Const(Parameter ref, boolean isNull)
          Constructs a new pointer to the given object.
 
Method Summary
 java.lang.Object clone()
           
 void pop(DataBuffer stackBuffer, int offset)
          Default implementation, which does nothing as most primitive types do nothing on pop.
 
Methods inherited from class com.jniwrapper.Pointer
acceptIOPerformer, checkMemHandleLength, getLength, getPointerHandle, getReferencedObject, isNull, read, read, readPointer, readReferencedObject, 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

Pointer.Const

public Pointer.Const(Parameter ref)
Constructs a new pointer to the given object. Constructed pointer is a non-null pointer parameter that points to the given object.

Parameters:
ref - referenced object.

Pointer.Const

public Pointer.Const(Parameter ref,
                     boolean isNull)
Constructs a new pointer to the given object. Constructed pointer may be null in which case referenced object value is not used or updated until pointer value is changed to non-null by native function.

Parameters:
ref - referenced object
isNull - if true the constructed pointer is null.
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class Pointer

pop

public void pop(DataBuffer stackBuffer,
                int offset)
         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