internal static PooledUnsafeDirectByteBuffer NewInstance(int maxCapacity)
        {
            PooledUnsafeDirectByteBuffer buf = Recycler.Take();

            buf.Reuse(maxCapacity);
            return(buf);
        }
Esempio n. 2
0
 protected override PooledByteBuffer <byte[]> NewByteBuf(int maxCapacity) =>
 PooledUnsafeDirectByteBuffer.NewInstance(maxCapacity);