Java io.netty.buffer Unpooled fields, constructors, methods, implement or subclass

Example usage for Java io.netty.buffer Unpooled fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.buffer Unpooled.

The text is from its open source code.

Field

ByteOrderLITTLE_ENDIAN
Little endian byte order.
ByteBufEMPTY_BUFFER
A buffer whose capacity is 0 .

Method

ByteBufbuffer()
Creates a new big-endian Java heap buffer with reasonably small initial capacity, which expands its capacity boundlessly on demand.
ByteBufbuffer(int initialCapacity)
Creates a new big-endian Java heap buffer with the specified capacity , which expands its capacity boundlessly on demand.
ByteBufbuffer(int initialCapacity, int maxCapacity)
Creates a new big-endian Java heap buffer with the specified initialCapacity , that may grow up to maxCapacity The new buffer's readerIndex and writerIndex are 0 .
CompositeByteBufcompositeBuffer()
Returns a new big-endian composite buffer with no components.
CompositeByteBufcompositeBuffer(int maxNumComponents)
Returns a new big-endian composite buffer with no components.
ByteBufcopiedBuffer(CharSequence string, Charset charset)
Creates a new big-endian buffer whose content is the specified string encoded in the specified charset .
ByteBufcopiedBuffer(char[] array, Charset charset)
Creates a new big-endian buffer whose content is the specified array encoded in the specified charset .
ByteBufcopiedBuffer(CharBuffer buffer, Charset charset)
ByteBufcopiedBuffer(byte[] array)
Creates a new big-endian buffer whose content is a copy of the specified array .
ByteBufcopiedBuffer(ByteBuffer buffer)
Creates a new buffer whose content is a copy of the specified buffer 's current slice.
ByteBufcopiedBuffer(ByteBuf buffer)
Creates a new buffer whose content is a copy of the specified buffer 's readable bytes.
ByteBufcopiedBuffer(byte[]... arrays)
Creates a new big-endian buffer whose content is a merged copy of the specified arrays .
ByteBufcopiedBuffer(ByteBuf... buffers)
Creates a new buffer whose content is a merged copy of the specified buffers ' readable bytes.
ByteBufcopiedBuffer(ByteBuffer... buffers)
Creates a new buffer whose content is a merged copy of the specified buffers ' slices.
ByteBufcopiedBuffer(byte[] array, int offset, int length)
Creates a new big-endian buffer whose content is a copy of the specified array 's sub-region.
ByteBufcopyDouble(double value)
Creates a new 8-byte big-endian buffer that holds the specified 64-bit floating point number.
ByteBufcopyDouble(double... values)
Create a new big-endian buffer that holds a sequence of the specified 64-bit floating point numbers.
ByteBufcopyFloat(float value)
Creates a new 4-byte big-endian buffer that holds the specified 32-bit floating point number.
ByteBufcopyFloat(float... values)
Create a new big-endian buffer that holds a sequence of the specified 32-bit floating point numbers.
ByteBufcopyInt(int value)
Creates a new 4-byte big-endian buffer that holds the specified 32-bit integer.
ByteBufcopyInt(int... values)
Create a big-endian buffer that holds a sequence of the specified 32-bit integers.
ByteBufcopyLong(long value)
Creates a new 8-byte big-endian buffer that holds the specified 64-bit integer.
ByteBufcopyLong(long... values)
Create a new big-endian buffer that holds a sequence of the specified 64-bit integers.
ByteBufcopyMedium(int value)
Creates a new 3-byte big-endian buffer that holds the specified 24-bit integer.
ByteBufcopyMedium(int... values)
Create a new big-endian buffer that holds a sequence of the specified 24-bit integers.
ByteBufcopyShort(int value)
Creates a new 2-byte big-endian buffer that holds the specified 16-bit integer.
ByteBufcopyShort(short... values)
Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.
ByteBufcopyShort(int... values)
Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.
ByteBufdirectBuffer(int initialCapacity)
Creates a new big-endian direct buffer with the specified capacity , which expands its capacity boundlessly on demand.
ByteBufdirectBuffer()
Creates a new big-endian direct buffer with reasonably small initial capacity, which expands its capacity boundlessly on demand.
ByteBufdirectBuffer(int initialCapacity, int maxCapacity)
Creates a new big-endian direct buffer with the specified initialCapacity , that may grow up to maxCapacity .
ByteBufunmodifiableBuffer(ByteBuf buffer)
Creates a read-only buffer which disallows any modification operations on the specified buffer .
ByteBufunmodifiableBuffer(ByteBuf... buffers)
Wrap the given ByteBuf s in an unmodifiable ByteBuf .
ByteBufunreleasableBuffer(ByteBuf buf)
Return a unreleasable view on the given ByteBuf which will just ignore release and retain calls.
ByteBufwrappedBuffer(byte[] array)
Creates a new big-endian buffer which wraps the specified array .
ByteBufwrappedBuffer(ByteBuffer buffer)
Creates a new buffer which wraps the specified NIO buffer's current slice.
ByteBufwrappedBuffer(ByteBuf buffer)
Creates a new buffer which wraps the specified buffer's readable bytes.
ByteBufwrappedBuffer(byte[]... arrays)
Creates a new big-endian composite buffer which wraps the specified arrays without copying them.
ByteBufwrappedBuffer(ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the specified buffers without copying them.
ByteBufwrappedBuffer(ByteBuffer... buffers)
Creates a new big-endian composite buffer which wraps the slices of the specified NIO buffers without copying them.
ByteBufwrappedBuffer(byte[] array, int offset, int length)
Creates a new big-endian buffer which wraps the sub-region of the specified array .
ByteBufwrappedBuffer(long memoryAddress, int size, boolean doFree)
Creates a new buffer which wraps the specified memory address.
ByteBufwrappedBuffer(int maxNumComponents, ByteWrapper wrapper, T[] array)
ByteBufwrappedBuffer(int maxNumComponents, byte[]... arrays)
Creates a new big-endian composite buffer which wraps the specified arrays without copying them.
ByteBufwrappedBuffer(int maxNumComponents, ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the specified buffers without copying them.
ByteBufwrappedBuffer(int maxNumComponents, ByteBuffer... buffers)
Creates a new big-endian composite buffer which wraps the slices of the specified NIO buffers without copying them.