com.smardec.j2native
Class Pointer.Void

java.lang.Object
  |
  +--com.smardec.j2native.Argument
        |
        +--com.smardec.j2native.PointerArgument
              |
              +--com.smardec.j2native.Pointer.Void
All Implemented Interfaces:
java.lang.Cloneable, PointerType
Enclosing class:
Pointer

public static final class Pointer.Void
extends PointerArgument

Class Pointer.Void represents a void *. This pointer can be used for parameters where the referenced object type/size is not known or is of no interest for the client


Field Summary
 
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
 
Constructor Summary
Pointer.Void()
          Constructs a new null pointer.
Pointer.Void(long handle)
          Constructs a new void pointer that has the given value.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 Argument getReferencedArgument()
          Returns the referenced object of this pointer
 long getValue()
          Returns native memory handle
 boolean isNull()
          Tests if this pointer is null.
 void setValue(long handle)
          Sets memory handle
 java.lang.String toString()
           
 
Methods inherited from class com.smardec.j2native.PointerArgument
equals, fromBytesValue, getLength, hashCode, isFixedLength, read, readFromStack, toBytesValue, toBytesValue, write, writeToStack
 
Methods inherited from class com.smardec.j2native.Argument
finalize, free, getAlignedLength, readFromRAM, restoreFromRAM, storeToRAM, update, writeToRAM
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pointer.Void

public Pointer.Void()
Constructs a new null pointer.


Pointer.Void

public Pointer.Void(long handle)
Constructs a new void pointer that has the given value.

Parameters:
handle - memory handle
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isNull

public boolean isNull()
Description copied from interface: PointerType
Tests if this pointer is null.

Returns:
boolean

getValue

public long getValue()
Description copied from interface: PointerType
Returns native memory handle


setValue

public void setValue(long handle)
Description copied from interface: PointerType
Sets memory handle

Parameters:
handle - memory handle

getReferencedArgument

public Argument getReferencedArgument()
Description copied from interface: PointerType
Returns the referenced object of this pointer

Returns:
referenced object

clone

public java.lang.Object clone()
Description copied from class: Argument
Creates and returns a copy of this object.

Specified by:
clone in class Argument
Returns:
a clone of this instance.


Copyright © 2004-2005 Smardec. All Rights Reserved.