16 writes to _inBytesPacket
System.Data (16)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (16)
996
_inBytesPacket
= ((int)_partialHeaderBuffer[TdsEnums.HEADER_LEN_FIELD_OFFSET] << 8 |
1030
_inBytesPacket
= ((int)_inBuff[_inBytesUsed + TdsEnums.HEADER_LEN_FIELD_OFFSET] << 8 |
1186
_inBytesPacket
++;
1240
_inBytesPacket
-= bytesToRead;
1279
_inBytesPacket
--;
1315
_inBytesPacket
-= 2;
1348
_inBytesPacket
-= 2;
1379
_inBytesPacket
-= 4;
1422
_inBytesPacket
-= 8;
1454
_inBytesPacket
-= 2;
1498
_inBytesPacket
-= 4;
1528
_inBytesPacket
-= 4;
1558
_inBytesPacket
-= 8;
1592
_inBytesPacket
-= cBytes;
1657
_inBytesPacket
-= length;
3679
_stateObj.
_inBytesPacket
= _snapshotInBytesPacket;
31 references to _inBytesPacket
System.Data (31)
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)
893
if (_physicalStateObj.
_inBytesPacket
> TdsEnums.MAX_PACKET_SIZE || _physicalStateObj.
_inBytesPacket
<= 0) {
896
byte[] payload = new byte[_physicalStateObj.
_inBytesPacket
];
2734
Debug.Assert(stateObj._inBytesUsed == stateObj._inBytesRead && stateObj.
_inBytesPacket
== 0, "DONE_ATTN received with more data left on wire");
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (26)
470
int bytesRemaining = Math.Min(
_inBytesPacket
, _inBytesRead - _inBytesUsed) - 1;
977
Debug.Assert(
_inBytesPacket
== 0, "there should not be any bytes left in packet when ReadHeader is called");
1037
if (
_inBytesPacket
< 0) {
1054
if ((
_inBytesPacket
== 0) && (_inBytesUsed < _inBytesRead)) {
1058
Debug.Assert(
_inBytesPacket
!= 0, "_inBytesPacket cannot be 0 after processing header!");
1067
if (
_inBytesPacket
> 0) {
1073
else if (
_inBytesPacket
== 0) {
1083
Debug.Assert(
_inBytesPacket
!= 0, "_inBytesPacket cannot be 0 after processing header!");
1226
if ((
_inBytesPacket
== 0) || (_inBytesUsed == _inBytesRead)) {
1232
int bytesToRead = Math.Min(len, Math.Min(
_inBytesPacket
, _inBytesRead - _inBytesUsed));
1272
if ((
_inBytesPacket
== 0) || (_inBytesUsed == _inBytesRead)) {
1281
Debug.Assert(
_inBytesPacket
>= 0, "ERROR - TDSParser: _inBytesPacket < 0");
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)) {
3249
Debug.Assert(
_inBytesPacket
>= 0, "Packet must not be negative");
3647
_snapshotInBytesPacket = _stateObj.
_inBytesPacket
;