public class PowerOfTwoBufferPool extends 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.
|
public PowerOfTwoBufferPool()
public PowerOfTwoBufferPool(int highestPowerOfTwo)
highestPowerOfTwo - the highest power of two buffer size that will be pooledpublic ByteBuf getBuffer(int size)
BufferProvidergetBuffer in interface BufferProvidersize - the size required for the bufferCopyright © 2010 - 2020 Adobe. All Rights Reserved