Esempio n. 1
0
 public HttpResponse(int size)
 {
     _headers = new LinkedBuffer();
     _headers.Allocate(size / 2);
     _body = new LinkedBuffer();
     _body.Allocate(size / 2);
 }
Esempio n. 2
0
 public void Enlarge(int desiredBufferLength = 0)
 {
     _buffer.Allocate(desiredBufferLength == 0 ? 1024 : desiredBufferLength);
 }