4 writes to _buffer
Microsoft.Data.Analysis.Tests (4)
src\Microsoft.Data.Analysis\TextFieldParser.cs (4)
544
_buffer
= null;
635
_buffer
= new char[BufferLength];
654
_buffer
= tempArray;
673
_buffer
= tempArray;
26 references to _buffer
Microsoft.Data.Analysis.Tests (26)
src\Microsoft.Data.Analysis\TextFieldParser.cs (26)
202
if ((_reader == null) || (
_buffer
== null))
408
if ((_reader == null) || (
_buffer
== null))
427
if ((_reader == null) || (
_buffer
== null))
456
if ((_reader == null) || (
_buffer
== null))
485
if ((_reader == null) || (
_buffer
== null))
489
StringBuilder builder = new StringBuilder(
_buffer
.Length);
490
builder.Append(
_buffer
, _position, _charsRead - _position);
627
Debug.Assert(
_buffer
!= null, "There's no buffer");
630
int BufferLength =
_buffer
.Length;
637
_charsRead = _reader.Read(
_buffer
, 0, BufferLength);
643
Debug.Assert(
_buffer
!= null, "There's no buffer");
645
Debug.Assert((_position >= 0) && (_position <=
_buffer
.Length), "The cursor is out of range");
648
int bufferLength =
_buffer
.Length;
650
Array.Copy(
_buffer
, _position, tempArray, 0, bufferLength - _position);
662
Debug.Assert(
_buffer
!= null, "There's no buffer");
665
int bufferSize =
_buffer
.Length + DEFAULT_BUFFER_LENGTH;
671
Array.Copy(
_buffer
, tempArray,
_buffer
.Length);
672
int charsRead = _reader.Read(tempArray,
_buffer
.Length, DEFAULT_BUFFER_LENGTH);
712
Debug.Assert(
_buffer
!= null, "There's no buffer");
724
char Character =
_buffer
[i];
731
Builder.Append(
_buffer
, cursor, i - cursor + 1);
736
Builder.Append(
_buffer
, cursor, i - cursor + 1);
743
if (
_buffer
[cursor].Equals('\n'))
749
else if (changeBuffer() > 0 &&
_buffer
[cursor].Equals('\n'))
764
Builder.Append(
_buffer
, cursor, Size);