|
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
public abstract class NativeObject
Base class that all native objects must extend.
| Constructor Summary | |
|---|---|
NativeObject()
Constructs a new native object. |
|
NativeObject(int size)
Constructs a new native object or specified size. |
|
NativeObject(long pointer,
int size)
Constructs a new native object using the specified native pointer and size. |
|
NativeObject(Pointer pointer,
int size)
Constructs a new native object using the specified pointer and size. |
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
clone()
Returns a clone of this native object. |
boolean |
equals(java.lang.Object object)
Returns whether this native object equals the specified native object. |
int |
getAlignment()
Returns the alignment of this native object. |
long |
getNativeAddress()
Returns the native address of the native buffer. |
NativeBuffer |
getNativeBuffer()
Returns the native buffer. |
long |
getNativeBufferHandle()
Returns the native handle to the native buffer. |
int |
hashCode()
Returns the hash code of the native buffer. |
void |
setNativeBuffer(long pointer,
int size)
Sets the bative buffer of specified size using the specified native pointer to a native buffer. |
void |
setNativeBuffer(NativeBuffer native_buffer)
Sets the native buffer to the specified native buffer. |
void |
setNativeBuffer(Pointer pointer,
int size)
Sets the native buffer of specified size using the specified pointer to a native buffer. |
int |
size()
Returns the size in bytes of the native buffer. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeObject()
public NativeObject(int size)
throws java.lang.OutOfMemoryError,
java.lang.IllegalArgumentException
size - the size in bytes. 1 or more.
java.lang.OutOfMemoryError - if there is not enough free memory.
java.lang.IllegalArgumentException - if the size specified is less than one (1).
public NativeObject(Pointer pointer,
int size)
pointer - the pointer to the native object.size - the size in bytes of the native object. -1 for unknown size.
public NativeObject(long pointer,
int size)
pointer - the native pointer to the native object.size - the size in bytes of the native object. -1 for unknown size.| Method Detail |
|---|
public int size()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the native object to compare against.
public NativeBuffer getNativeBuffer()
public long getNativeBufferHandle()
public void setNativeBuffer(NativeBuffer native_buffer)
native_buffer - the native buffer.
public void setNativeBuffer(Pointer pointer,
int size)
pointer - the pointer to the native buffer.size - the size of the native buffer. -1 if unknown.
public void setNativeBuffer(long pointer,
int size)
pointer - the handle to the native buffer.size - the size of the native buffer. -1 if unknown.public long getNativeAddress()
public abstract java.lang.Object clone()
clone in class java.lang.Objectpublic int getAlignment()
|
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.