2 writes to sb
System (2)
services\monitoring\system\diagnosticts\AsyncStreamReader.cs (2)
91
sb
= null;
140
sb
= new StringBuilder(DefaultBufferSize);
13 references to sb
System (13)
services\monitoring\system\diagnosticts\AsyncStreamReader.cs (13)
139
if(
sb
== null ) {
177
if(
sb
.Length != 0) {
178
messageQueue.Enqueue(
sb
.ToString());
179
sb
.Length = 0;
193
sb
.Append(charBuffer, 0, charLen);
211
int len =
sb
.Length;
215
if (bLastCarriageReturn && (len > 0) &&
sb
[0] == '\n')
223
char ch =
sb
[currentIndex];
227
string s =
sb
.ToString(lineStart, currentIndex - lineStart);
230
if ((ch == '\r') && (lineStart < len) && (
sb
[lineStart] == '\n'))
244
if (len > 0 &&
sb
[len - 1] == '\r') {
255
sb
.Remove(0, lineStart);
260
sb
.Length = 0;