3 writes to _partialHeaderBytesRead
System.Data (3)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (3)
989
_partialHeaderBytesRead
+= copy;
995
_partialHeaderBytesRead
= 0;
3692
_stateObj.
_partialHeaderBytesRead
= 0;
8 references to _partialHeaderBytesRead
System.Data (8)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
701
if (_stateObj.
_partialHeaderBytesRead
> 0) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
3784
if (stateObj.
_partialHeaderBytesRead
> 0) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (6)
980
if ((
_partialHeaderBytesRead
> 0) || (_inBytesUsed + _inputHeaderLen > _inBytesRead)) {
985
int copy = Math.Min(_inBytesRead - _inBytesUsed, _inputHeaderLen -
_partialHeaderBytesRead
);
988
Buffer.BlockCopy(_inBuff, _inBytesUsed, _partialHeaderBuffer,
_partialHeaderBytesRead
, copy);
992
Debug.Assert(
_partialHeaderBytesRead
<= _inputHeaderLen, "Read more bytes for header than required");
993
if (
_partialHeaderBytesRead
== _inputHeaderLen) {
1023
} while (
_partialHeaderBytesRead
!= 0); // This is reset to 0 once we have read everything that we need