Exemplo n.º 1
0
        internal static PooledUnsafeDirectByteBuffer NewInstance(int maxCapacity)
        {
            PooledUnsafeDirectByteBuffer buf = Recycler.Take();

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