Example #1
0
        internal static PooledHeapByteBuffer NewInstance(int maxCapacity)
        {
            PooledHeapByteBuffer buf = Recycler.Take();

            buf.Reuse(maxCapacity);
            return(buf);
        }
Example #2
0
 protected override PooledByteBuffer <byte[]> NewByteBuf(int maxCapacity) =>
 PooledHeapByteBuffer.NewInstance(maxCapacity);