|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.jmfext.media.protocol.ByteBufferPool
public class ByteBufferPool
Represents a pool of ByteBuffers which reduces the allocations and deallocations of ByteBuffers in the Java heap and of native memory in the native heap.
| Constructor Summary | |
|---|---|
ByteBufferPool()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes this ByteBufferPool i.e. |
ByteBuffer |
getFreeBuffer(int capacity)
Gets a ByteBuffer out of the pool of free ByteBuffers (i.e. |
void |
returnFreeBuffer(ByteBuffer buffer)
Returns a specific ByteBuffer into the pool of free ByteBuffers (i.e. |
void |
returnFreeBuffer(long bufferPtr)
Returns a specific ByteBuffer given by the pointer to the native memory that it represents into the pool of free ByteBuffers (i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteBufferPool()
| Method Detail |
|---|
public void close()
public ByteBuffer getFreeBuffer(int capacity)
capacity - the minimal number of bytes that the returned
ByteBuffer is to be capable of receiving
public void returnFreeBuffer(ByteBuffer buffer)
buffer - the ByteBuffer to be returned into the pool of
free ByteBufferspublic void returnFreeBuffer(long bufferPtr)
bufferPtr - the pointer to the native memory represented by the
ByteBuffer to be returned into the pool of free
ByteBuffers
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||