|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.allocator.Allocator.Buffer
Represents the data buffer returned to the application as a result of allocate() request. Contains actual byte[] array and the size value. Users should access only the [0..size] region of the array, since the initial content of the remaining part is undefined.
Field Summary | |
protected byte[] |
data
|
protected int |
size
|
Constructor Summary | |
protected |
Allocator.Buffer(byte[] data,
int size)
|
Method Summary | |
void |
addRef()
Increase reference count on this buffer. |
byte[] |
getData()
Returns the data array encapsulated in this buffer. |
int |
getSize()
Returns the size of this buffer. |
protected abstract void |
reclaim()
|
void |
releaseRef()
Decrease the reference count on this buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final byte[] data
protected final int size
Constructor Detail |
protected Allocator.Buffer(byte[] data, int size)
Method Detail |
public byte[] getData()
getSize()
public int getSize()
getData()
public void addRef()
public void releaseRef()
protected abstract void reclaim()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |