| Modifier and Type | Field and Description |
|---|---|
| private ByteBufAllocator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | |
| public ByteBuf | buffer(int initialCapacity)
Implements io. ByteBuf with the given initial capacity.
|
| public ByteBuf | buffer(int initialCapacity, int maxCapacity)
Implements io. ByteBuf with the given initial capacity and the given
maximal capacity.
|
| public int | calculateNewCapacity(int minNewCapacity, int maxCapacity)
Implements io. ByteBuf that is used when a ByteBuf needs to expand by the
minNewCapacity with maxCapacity as upper-bound.
|
| public CompositeByteBuf | compositeBuffer()
Implements io. CompositeByteBuf.
|
| public CompositeByteBuf | compositeBuffer(int maxNumComponents)
Implements io. CompositeByteBuf with the given maximum number of components that can be stored in it.
|
| public CompositeByteBuf | compositeDirectBuffer()
Implements io. CompositeByteBuf.
|
| public CompositeByteBuf | compositeDirectBuffer(int maxNumComponents)
Implements io. CompositeByteBuf with the given maximum number of components that can be stored in it.
|
| public CompositeByteBuf | compositeHeapBuffer()
Implements io. CompositeByteBuf.
|
| public CompositeByteBuf | compositeHeapBuffer(int maxNumComponents)
Implements io. CompositeByteBuf with the given maximum number of components that can be stored in it.
|
| public ByteBuf | |
| public ByteBuf | directBuffer(int initialCapacity)
Implements io. ByteBuf with the given initial capacity.
|
| public ByteBuf | directBuffer(int initialCapacity, int maxCapacity)
Implements io. ByteBuf with the given initial capacity and the given
maximal capacity.
|
| public ByteBuf | |
| public ByteBuf | heapBuffer(int initialCapacity)
Implements io. ByteBuf with the given initial capacity.
|
| public ByteBuf | heapBuffer(int initialCapacity, int maxCapacity)
Implements io. ByteBuf with the given initial capacity and the given
maximal capacity.
|
| public ByteBuf | ioBuffer()
Implements io. ByteBuf, preferably a direct buffer which is suitable for I/O.
|
| public ByteBuf | ioBuffer(int initialCapacity)
Implements io. ByteBuf, preferably a direct buffer which is suitable for I/O.
|
| public ByteBuf | ioBuffer(int initialCapacity, int maxCapacity)
Implements io. ByteBuf, preferably a direct buffer which is suitable for I/O.
|
| public boolean | isDirectBufferPooled()
Implements io. true if direct ByteBuf's are pooled
|
| public void |
| allocator | back to summary |
|---|---|
| private ByteBufAllocator allocator | |
| PreferredDirectByteBufAllocator | back to summary |
|---|---|
| public PreferredDirectByteBufAllocator() | |
| buffer | back to summary |
|---|---|
| public ByteBuf buffer() Implements io. Doc from io. Allocate a
| |
| buffer | back to summary |
|---|---|
| public ByteBuf buffer(int initialCapacity) Implements io. Doc from io. Allocate a
| |
| buffer | back to summary |
|---|---|
| public ByteBuf buffer(int initialCapacity, int maxCapacity) Implements io. Doc from io. Allocate a
| |
| calculateNewCapacity | back to summary |
|---|---|
| public int calculateNewCapacity(int minNewCapacity, int maxCapacity) Implements io. Doc from io. Calculate the new capacity of a
| |
| compositeBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeBuffer() Implements io. Doc from io. Allocate a
| |
| compositeBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeBuffer(int maxNumComponents) Implements io. Doc from io. Allocate a
| |
| compositeDirectBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeDirectBuffer() Implements io. Doc from io. Allocate a direct
| |
| compositeDirectBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeDirectBuffer(int maxNumComponents) Implements io. Doc from io. Allocate a direct
| |
| compositeHeapBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeHeapBuffer() Implements io. Doc from io. Allocate a heap
| |
| compositeHeapBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeHeapBuffer(int maxNumComponents) Implements io. Doc from io. Allocate a heap
| |
| directBuffer | back to summary |
|---|---|
| public ByteBuf directBuffer() Implements io. Doc from io. Allocate a direct
| |
| directBuffer | back to summary |
|---|---|
| public ByteBuf directBuffer(int initialCapacity) Implements io. Doc from io. Allocate a direct
| |
| directBuffer | back to summary |
|---|---|
| public ByteBuf directBuffer(int initialCapacity, int maxCapacity) Implements io. Doc from io. Allocate a direct
| |
| heapBuffer | back to summary |
|---|---|
| public ByteBuf heapBuffer() Implements io. Doc from io. Allocate a heap
| |
| heapBuffer | back to summary |
|---|---|
| public ByteBuf heapBuffer(int initialCapacity) Implements io. Doc from io. Allocate a heap
| |
| heapBuffer | back to summary |
|---|---|
| public ByteBuf heapBuffer(int initialCapacity, int maxCapacity) Implements io. Doc from io. Allocate a heap
| |
| ioBuffer | back to summary |
|---|---|
| public ByteBuf ioBuffer() Implements io. Doc from io. Allocate a
| |
| ioBuffer | back to summary |
|---|---|
| public ByteBuf ioBuffer(int initialCapacity) Implements io. Doc from io. Allocate a
| |
| ioBuffer | back to summary |
|---|---|
| public ByteBuf ioBuffer(int initialCapacity, int maxCapacity) Implements io. Doc from io. Allocate a
| |
| isDirectBufferPooled | back to summary |
|---|---|
| public boolean isDirectBufferPooled() Implements io. Doc from io. Returns
| |
| updateAllocator | back to summary |
|---|---|
| public void updateAllocator(ByteBufAllocator allocator) | |