public BufferFormatter(int capacity, FormattingData formattingData, BufferPool pool = null) { _formattingData = formattingData; _count = 0; _pool = pool; if(_pool == null) { _pool = BufferPool.Shared; } _buffer = _pool.RentBuffer(capacity); }
public HttpServerBuffer(byte[] buffer, int count, BufferPool pool = null) { _buffer = buffer; _count = count; _pool = pool; }