Esempio n. 1
0
 /**
  * Creates a new big-endian direct buffer with reasonably small initial capacity, which expands
  * its capacity boundlessly on demand.
  */
 public static ByteBuf directBuffer() {
   return ALLOC.directBuffer();
 }
Esempio n. 2
0
 /**
  * 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}.
  */
 public static ByteBuf directBuffer(int initialCapacity, int maxCapacity) {
   return ALLOC.directBuffer(initialCapacity, maxCapacity);
 }