|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.jenie.NativeObject
stec.jenie.Pointer
public class Pointer
Represents a native pointer value.
Depending on the platform values are native 32-bit or 64-bit pointers.
| Field Summary | |
|---|---|
static int |
SIZEOF
The size in bytes of a pointer. |
| Constructor Summary | |
|---|---|
Pointer()
Constructs a new pointer. |
|
Pointer(Callback callback)
Constucts a new pointer pointing to the specified callback. |
|
Pointer(long pointer)
Constucts a new pointer pointing to the specified location. |
|
Pointer(long pointer,
int size)
Constucts a new pointer pointing to the specified location. |
|
Pointer(NativeObject object)
Constucts a new pointer pointing to the specified native object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this pointer. |
boolean |
equals(java.lang.Object object)
Returns whether this pointer equals the specified pointer. |
long |
getValue()
Returns the current value. |
int |
hashCode()
Returns the hash code of this pointer. |
boolean |
isNull()
Returns whether this pointer points null. |
void |
setValue(Callback callback)
Points this pointer to the specified callback. |
void |
setValue(long pointer)
Points this pointer to the specified location. |
void |
setValue(long pointer,
int size)
Points this pointer to the specified location. |
void |
setValue(NativeObject object)
Points this pointer to the specified native object. |
java.lang.String |
toString()
Returns a String representation of this pointer. |
| Methods inherited from class stec.jenie.NativeObject |
|---|
getAlignment, getNativeAddress, getNativeBuffer, getNativeBufferHandle, setNativeBuffer, setNativeBuffer, setNativeBuffer, size |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stec.jenie.NativeParameter |
|---|
getNativeBufferHandle |
| Field Detail |
|---|
public static final int SIZEOF
| Constructor Detail |
|---|
public Pointer()
throws java.lang.OutOfMemoryError
Defaults to null.
java.lang.OutOfMemoryError - if there is not enough free memory.
public Pointer(long pointer)
throws java.lang.OutOfMemoryError
pointer - the location to point to.
java.lang.OutOfMemoryError - if there is not enough free memory.
public Pointer(long pointer,
int size)
throws java.lang.OutOfMemoryError
pointer - the location to point to.size - the size of the native buffer.
java.lang.OutOfMemoryError - if there is not enough free memory.
public Pointer(NativeObject object)
throws java.lang.OutOfMemoryError
object - the the native object to point to.
java.lang.OutOfMemoryError - if there is not enough free memory.
public Pointer(Callback callback)
throws java.lang.OutOfMemoryError
callback - the callback to point to.
java.lang.OutOfMemoryError - if there is not enough free memory.| Method Detail |
|---|
public long getValue()
public void setValue(NativeObject object)
object - the native object to point to.public void setValue(Callback callback)
callback - the callback to point to.public void setValue(long pointer)
pointer - the location to point to.
public void setValue(long pointer,
int size)
pointer - the location to point to.size - the size of the native buffer.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class NativeObjectobject - the pointer to compare against.
public int hashCode()
hashCode in class NativeObject
public java.lang.Object clone()
throws java.lang.OutOfMemoryError
clone in interface NativeParameterclone in class NativeObjectjava.lang.OutOfMemoryError - if there is not enough free memory.public boolean isNull()
|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2004-2005 Servertec. All rights reserved.