void CheckOverflow (int count) { if (Length + count > maxSize) throw new HttpRequestException (string.Format ("Cannot write more bytes to the buffer than the configured maximum buffer size: {0}", maxSize)); }