コード例 #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);
 }
コード例 #2
0
ファイル: HttpServer.cs プロジェクト: shhsu/corefxlab
 public HttpServerBuffer(byte[] buffer, int count, BufferPool pool = null)
 {
     _buffer = buffer;
     _count = count;
     _pool = pool;
 }