|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.xbig.base.NativeLongBuffer
public class NativeLongBuffer
Allows allocation of a memory region.
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
NativeLongBuffer(InstancePointer pInstance)
|
|
NativeLongBuffer(InstancePointer pointer,
boolean b)
|
|
NativeLongBuffer(int size)
Allocate memory of passed size. |
|
| Method Summary | |
|---|---|
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
long |
getIndex(int index)
Get value from buffer at a given index. |
int |
getSize()
Get size of this buffer. |
VoidPointer |
getVoidPointer()
Get a VoidPointer for this buffer. |
void |
setIndex(int index,
long value)
Set value at a given index. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NativeLongBuffer(InstancePointer pInstance)
public NativeLongBuffer(InstancePointer pointer,
boolean b)
public NativeLongBuffer(int size)
size - Size of memory to allocate.| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObjectNativeObject.delete()public long getIndex(int index)
index - Index to get value from.
public void setIndex(int index,
long value)
index - Index to set.value - Value to set.public int getSize()
public VoidPointer getVoidPointer()
public void finalize()
finalize in class NativeObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||