Example usage for Java io.netty.buffer Unpooled fields, constructors, methods, implement or subclass
The text is from its open source code.
ByteOrder | LITTLE_ENDIAN Little endian byte order. |
ByteBuf | EMPTY_BUFFER A buffer whose capacity is 0 . |
ByteBuf | buffer() Creates a new big-endian Java heap buffer with reasonably small initial capacity, which expands its capacity boundlessly on demand. |
ByteBuf | buffer(int initialCapacity) Creates a new big-endian Java heap buffer with the specified capacity , which expands its capacity boundlessly on demand. |
ByteBuf | buffer(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 . |
CompositeByteBuf | compositeBuffer() Returns a new big-endian composite buffer with no components. |
CompositeByteBuf | compositeBuffer(int maxNumComponents) Returns a new big-endian composite buffer with no components. |
ByteBuf | copiedBuffer(CharSequence string, Charset charset) Creates a new big-endian buffer whose content is the specified string encoded in the specified charset . |
ByteBuf | copiedBuffer(char[] array, Charset charset) Creates a new big-endian buffer whose content is the specified array encoded in the specified charset . |
ByteBuf | copiedBuffer(CharBuffer buffer, Charset charset) |
ByteBuf | copiedBuffer(byte[] array) Creates a new big-endian buffer whose content is a copy of the specified array . |
ByteBuf | copiedBuffer(ByteBuffer buffer) Creates a new buffer whose content is a copy of the specified buffer 's current slice. |
ByteBuf | copiedBuffer(ByteBuf buffer) Creates a new buffer whose content is a copy of the specified buffer 's readable bytes. |
ByteBuf | copiedBuffer(byte[]... arrays) Creates a new big-endian buffer whose content is a merged copy of the specified arrays . |
ByteBuf | copiedBuffer(ByteBuf... buffers) Creates a new buffer whose content is a merged copy of the specified buffers ' readable bytes. |
ByteBuf | copiedBuffer(ByteBuffer... buffers) Creates a new buffer whose content is a merged copy of the specified buffers ' slices. |
ByteBuf | copiedBuffer(byte[] array, int offset, int length) Creates a new big-endian buffer whose content is a copy of the specified array 's sub-region. |
ByteBuf | copyDouble(double value) Creates a new 8-byte big-endian buffer that holds the specified 64-bit floating point number. |
ByteBuf | copyDouble(double... values) Create a new big-endian buffer that holds a sequence of the specified 64-bit floating point numbers. |
ByteBuf | copyFloat(float value) Creates a new 4-byte big-endian buffer that holds the specified 32-bit floating point number. |
ByteBuf | copyFloat(float... values) Create a new big-endian buffer that holds a sequence of the specified 32-bit floating point numbers. |
ByteBuf | copyInt(int value) Creates a new 4-byte big-endian buffer that holds the specified 32-bit integer. |
ByteBuf | copyInt(int... values) Create a big-endian buffer that holds a sequence of the specified 32-bit integers. |
ByteBuf | copyLong(long value) Creates a new 8-byte big-endian buffer that holds the specified 64-bit integer. |
ByteBuf | copyLong(long... values) Create a new big-endian buffer that holds a sequence of the specified 64-bit integers. |
ByteBuf | copyMedium(int value) Creates a new 3-byte big-endian buffer that holds the specified 24-bit integer. |
ByteBuf | copyMedium(int... values) Create a new big-endian buffer that holds a sequence of the specified 24-bit integers. |
ByteBuf | copyShort(int value) Creates a new 2-byte big-endian buffer that holds the specified 16-bit integer. |
ByteBuf | copyShort(short... values) Create a new big-endian buffer that holds a sequence of the specified 16-bit integers. |
ByteBuf | copyShort(int... values) Create a new big-endian buffer that holds a sequence of the specified 16-bit integers. |
ByteBuf | directBuffer(int initialCapacity) Creates a new big-endian direct buffer with the specified capacity , which expands its capacity boundlessly on demand. |
ByteBuf | directBuffer() Creates a new big-endian direct buffer with reasonably small initial capacity, which expands its capacity boundlessly on demand. |
ByteBuf | directBuffer(int initialCapacity, int maxCapacity) Creates a new big-endian direct buffer with the specified initialCapacity , that may grow up to maxCapacity . |
ByteBuf | unmodifiableBuffer(ByteBuf buffer) Creates a read-only buffer which disallows any modification operations on the specified buffer . |
ByteBuf | unmodifiableBuffer(ByteBuf... buffers) Wrap the given ByteBuf s in an unmodifiable ByteBuf . |
ByteBuf | unreleasableBuffer(ByteBuf buf) Return a unreleasable view on the given ByteBuf which will just ignore release and retain calls. |
ByteBuf | wrappedBuffer(byte[] array) Creates a new big-endian buffer which wraps the specified array . |
ByteBuf | wrappedBuffer(ByteBuffer buffer) Creates a new buffer which wraps the specified NIO buffer's current slice. |
ByteBuf | wrappedBuffer(ByteBuf buffer) Creates a new buffer which wraps the specified buffer's readable bytes. |
ByteBuf | wrappedBuffer(byte[]... arrays) Creates a new big-endian composite buffer which wraps the specified arrays without copying them. |
ByteBuf | wrappedBuffer(ByteBuf... buffers) Creates a new big-endian composite buffer which wraps the readable bytes of the specified buffers without copying them. |
ByteBuf | wrappedBuffer(ByteBuffer... buffers) Creates a new big-endian composite buffer which wraps the slices of the specified NIO buffers without copying them. |
ByteBuf | wrappedBuffer(byte[] array, int offset, int length) Creates a new big-endian buffer which wraps the sub-region of the specified array . |
ByteBuf | wrappedBuffer(long memoryAddress, int size, boolean doFree) Creates a new buffer which wraps the specified memory address. |
ByteBuf | wrappedBuffer(int maxNumComponents, ByteWrapper |
ByteBuf | wrappedBuffer(int maxNumComponents, byte[]... arrays) Creates a new big-endian composite buffer which wraps the specified arrays without copying them. |
ByteBuf | wrappedBuffer(int maxNumComponents, ByteBuf... buffers) Creates a new big-endian composite buffer which wraps the readable bytes of the specified buffers without copying them. |
ByteBuf | wrappedBuffer(int maxNumComponents, ByteBuffer... buffers) Creates a new big-endian composite buffer which wraps the slices of the specified NIO buffers without copying them. |