Example usage for Java io.netty.buffer ByteBufAllocator fields, constructors, methods, implement or subclass
The text is from its open source code.
ByteBufAllocator | DEFAULT |
ByteBuf | buffer(int initialCapacity) Allocate a ByteBuf with the given initial capacity. |
ByteBuf | buffer() Allocate a ByteBuf . |
ByteBuf | buffer(int initialCapacity, int maxCapacity) Allocate a ByteBuf with the given initial capacity and the given maximal capacity. |
CompositeByteBuf | compositeBuffer() Allocate a CompositeByteBuf . |
CompositeByteBuf | compositeBuffer(int maxNumComponents) Allocate a CompositeByteBuf with the given maximum number of components that can be stored in it. |
ByteBuf | directBuffer() Allocate a direct ByteBuf . |
ByteBuf | directBuffer(int initialCapacity) Allocate a direct ByteBuf with the given initial capacity. |
ByteBuf | directBuffer(int initialCapacity, int maxCapacity) Allocate a direct ByteBuf with the given initial capacity and the given maximal capacity. |
ByteBuf | heapBuffer() Allocate a heap ByteBuf . |
ByteBuf | heapBuffer(int initialCapacity) Allocate a heap ByteBuf with the given initial capacity. |
ByteBuf | heapBuffer(int initialCapacity, int maxCapacity) Allocate a heap ByteBuf with the given initial capacity and the given maximal capacity. |
ByteBuf | ioBuffer() Allocate a ByteBuf , preferably a direct buffer which is suitable for I/O. |
ByteBuf | ioBuffer(int initialCapacity) Allocate a ByteBuf , preferably a direct buffer which is suitable for I/O. |
ByteBuf | ioBuffer(int initialCapacity, int maxCapacity) Allocate a ByteBuf , preferably a direct buffer which is suitable for I/O. |
boolean | isDirectBufferPooled() Returns true if direct ByteBuf 's are pooled |