public class PowerOfTwoBufferPool extends java.lang.Object implements BufferProvider
This class should not be considered a part of the public API.
Constructor and Description |
---|
PowerOfTwoBufferPool()
Construct an instance with a highest power of two of 24.
|
PowerOfTwoBufferPool(int highestPowerOfTwo)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
getBuffer(int size)
Gets a buffer with the givens capacity.
|
public PowerOfTwoBufferPool()
public PowerOfTwoBufferPool(int highestPowerOfTwo)
highestPowerOfTwo
- the highest power of two buffer size that will be pooledpublic ByteBuf getBuffer(int size)
BufferProvider
getBuffer
in interface BufferProvider
size
- the size required for the bufferCopyright © 2010 - 2020 Adobe. All Rights Reserved