Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public HttpServerBuffer(byte[] buffer, int count, BufferPool pool = null)
 {
     _buffer = buffer;
     _count = count;
     _pool = pool;
 }