Unpooled.directBuffer

Creates a new big-endian direct 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 directBuffer()
  2. ByteBuf directBuffer(size_t initialCapacity)
  3. ByteBuf directBuffer(int initialCapacity, int maxCapacity)
    class Unpooled
    static
    directBuffer

Meta