Unpooled.directBuffer

Creates a new big-endian direct buffer with the specified {@code capacity}, which expands its capacity boundlessly on demand. The new buffer's {@code readerIndex} and {@code writerIndex} are {@code 0}.

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

Meta