Unpooled.buffer

Creates a new big-endian heap buffer with the specified {@code initialCapacity}, that may grow up to {@code maxCapacity} The new buffer's {@code readerIndex} and {@code writerIndex} are {@code 0}.

  1. ByteBuf buffer()
  2. ByteBuf buffer(size_t initialCapacity)
  3. ByteBuf buffer(int initialCapacity, int maxCapacity)
    class Unpooled
    static
    buffer

Meta