Create a new Buffer from a Netty ByteBuf instance.
Create a new Buffer from a Netty ByteBuf instance.
This method is meant for internal use only.
Create a new Buffer that contains the contents of String str encoded with UTF-8 encoding
Create a new Buffer that contains the contents of a String str encoded according to the encoding enc
Create a new Buffer that contains the contents of a byte[]
Creates a new empty Buffer that is expected to have a size of initialSizeHint after data has been
written to it.
Creates a new empty Buffer that is expected to have a size of initialSizeHint after data has been
written to it.
Please note that length of the Buffer immediately after creation will be zero.
The initialSizeHint is merely a hint to the system for how much memory to initially allocate to the buffer to prevent excessive
automatic re-allocations as data is written to it.
Create a buffer from a java buffer
Create an empty buffer