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