5 writes to _inBytesRead
System.Data (5)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (5)
1131
_inBytesRead
= 0;
1150
_inBytesRead
= _inBytesRead - _inBytesUsed;
1158
_inBytesRead
= 0;
2418
_inBytesRead
= (int)dataSize;
3634
_stateObj.
_inBytesRead
= next.Read;
39 references to _inBytesRead
System.Data (39)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
3562
int bytesRemaining = Math.Min(checked(_stateObj.
_inBytesRead
- _stateObj._inBytesUsed), _stateObj._inBytesPacket);
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
884
if (_physicalStateObj.
_inBytesRead
== 0) {
2714
if (stateObj.
_inBytesRead
> stateObj._inBytesUsed) {
2734
Debug.Assert(stateObj._inBytesUsed == stateObj.
_inBytesRead
&& stateObj._inBytesPacket == 0, "DONE_ATTN received with more data left on wire");
2789
if (stateObj._inBytesUsed >= stateObj.
_inBytesRead
) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (34)
470
int bytesRemaining = Math.Min(_inBytesPacket,
_inBytesRead
- _inBytesUsed) - 1;
980
if ((_partialHeaderBytesRead > 0) || (_inBytesUsed + _inputHeaderLen >
_inBytesRead
)) {
985
int copy = Math.Min(
_inBytesRead
- _inBytesUsed, _inputHeaderLen - _partialHeaderBytesRead);
1002
Debug.Assert(_inBytesUsed ==
_inBytesRead
, "Did not use all data while reading partial header");
1054
if ((_inBytesPacket == 0) && (_inBytesUsed <
_inBytesRead
)) {
1063
if (_inBytesUsed ==
_inBytesRead
) {
1084
if (_inBytesUsed ==
_inBytesRead
) {
1136
if (
_inBytesRead
> _inBytesUsed) {
1143
int remainingData =
_inBytesRead
- _inBytesUsed;
1150
_inBytesRead =
_inBytesRead
- _inBytesUsed;
1226
if ((_inBytesPacket == 0) || (_inBytesUsed ==
_inBytesRead
)) {
1232
int bytesToRead = Math.Min(len, Math.Min(_inBytesPacket,
_inBytesRead
- _inBytesUsed));
1253
Debug.Assert(_inBytesUsed >= 0 && _inBytesUsed <=
_inBytesRead
, "ERROR - TDSParser: _inBytesUsed < 0 or _inBytesUsed > _inBytesRead");
1272
if ((_inBytesPacket == 0) || (_inBytesUsed ==
_inBytesRead
)) {
1295
if (((_inBytesUsed + 2) >
_inBytesRead
) || (_inBytesPacket < 2)) {
1328
if (((_inBytesUsed + 2) >
_inBytesRead
) || (_inBytesPacket < 2)) {
1359
if (((_inBytesUsed + 4) >
_inBytesRead
) || (_inBytesPacket < 4)) {
1389
if ((_inBytesPacket == 0) || (_inBytesUsed ==
_inBytesRead
)) {
1396
if ((_bTmpRead > 0) || (((_inBytesUsed + 8) >
_inBytesRead
) || (_inBytesPacket < 8))) {
1434
if (((_inBytesUsed + 2) >
_inBytesRead
) || (_inBytesPacket < 2)) {
1465
if ((_inBytesPacket == 0) || (_inBytesUsed ==
_inBytesRead
)) {
1472
if ((_bTmpRead > 0) || (((_inBytesUsed + 4) >
_inBytesRead
) || (_inBytesPacket < 4))) {
1508
if (((_inBytesUsed + 4) >
_inBytesRead
) || (_inBytesPacket < 4)) {
1538
if (((_inBytesUsed + 8) >
_inBytesRead
) || (_inBytesPacket < 8)) {
1572
if (((_inBytesUsed + cBytes) >
_inBytesRead
) || (_inBytesPacket < cBytes)) {
1637
if (((_inBytesUsed + length) >
_inBytesRead
) || (_inBytesPacket < length)) {
2422
_snapshot.PushBuffer(_inBuff,
_inBytesRead
);
2434
Bid.TraceBin("<sc.TdsParser.ReadNetworkPacketAsyncCallback|INFO|ADV> Packet read", _inBuff, (UInt16)
_inBytesRead
);
3185
statistics.SafeAdd(ref statistics._bytesReceived,
_inBytesRead
);
3230
if (_inBytesUsed < 0 ||
_inBytesRead
< 0) {
3234
_inBytesUsed,
_inBytesRead
);
3236
else if (_inBytesUsed >
_inBytesRead
) {
3240
_inBytesUsed,
_inBytesRead
);
3669
PushBuffer(_stateObj._inBuff, _stateObj.
_inBytesRead
);