Home about services products contact login
   com.smardec

J2Native

  j2native
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
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
Methods inherited from class com.smardec.j2native.PointerArgument
fromBytesValue, getLength, isFixedLength, read, readFromStack, toBytesValue, toBytesValue, write, writeToStack
Methods inherited from class com.smardec.j2native.Argument
clone, finalize, free, getAlignedLength, getResultFlags, readFromRAM, restoreFromRAM, storeToRAM, update, writeToRAM
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, 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
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
Home about services products contact login