14 writes to _outBytesUsed
System.Data (14)
fx\src\data\System\Data\SqlClient\TdsParser.cs (8)
1543
stateObj.
_outBytesUsed
+= 2;
1598
stateObj.
_outBytesUsed
+= 4;
1663
stateObj.
_outBytesUsed
+= 8;
1700
stateObj.
_outBytesUsed
+= length;
3082
stateObj.
_outBytesUsed
= stateObj._outputHeaderLen;
6568
stateObj.
_outBytesUsed
+= cBytes;
6595
stateObj.
_outBytesUsed
+= cBytes;
6705
stateObj.
_outBytesUsed
+= bytesWritten;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (6)
1104
_outBytesUsed
= _outputHeaderLen;
1165
_outBytesUsed
= _outputHeaderLen;
2656
_outBytesUsed
+= lengthInBytes;
2719
_outBuff[
_outBytesUsed
++] = b;
2757
_outBytesUsed
+= remainder;
2781
_outBytesUsed
+= len;
47 references to _outBytesUsed
System.Data (47)
fx\src\data\System\Data\SqlClient\TdsParser.cs (29)
1534
if ((stateObj.
_outBytesUsed
+ 2) > stateObj._outBuff.Length) {
1541
stateObj._outBuff[stateObj.
_outBytesUsed
] = (byte)(v & 0xff);
1542
stateObj._outBuff[stateObj.
_outBytesUsed
+ 1] = (byte)((v >> 8) & 0xff);
1585
if ((stateObj.
_outBytesUsed
+ 4) > stateObj._outBuff.Length) {
1594
stateObj._outBuff[stateObj.
_outBytesUsed
] = (byte)(v & 0xff);
1595
stateObj._outBuff[stateObj.
_outBytesUsed
+ 1] = (byte)((v >> 8) & 0xff);
1596
stateObj._outBuff[stateObj.
_outBytesUsed
+ 2] = (byte)((v >> 16) & 0xff);
1597
stateObj._outBuff[stateObj.
_outBytesUsed
+ 3] = (byte)((v >> 24) & 0xff);
1646
if ((stateObj.
_outBytesUsed
+ 8) > stateObj._outBuff.Length) {
1655
stateObj._outBuff[stateObj.
_outBytesUsed
] = (byte)(v & 0xff);
1656
stateObj._outBuff[stateObj.
_outBytesUsed
+ 1] = (byte)((v >> 8) & 0xff);
1657
stateObj._outBuff[stateObj.
_outBytesUsed
+ 2] = (byte)((v >> 16) & 0xff);
1658
stateObj._outBuff[stateObj.
_outBytesUsed
+ 3] = (byte)((v >> 24) & 0xff);
1659
stateObj._outBuff[stateObj.
_outBytesUsed
+ 4] = (byte)((v >> 32) & 0xff);
1660
stateObj._outBuff[stateObj.
_outBytesUsed
+ 5] = (byte)((v >> 40) & 0xff);
1661
stateObj._outBuff[stateObj.
_outBytesUsed
+ 6] = (byte)((v >> 48) & 0xff);
1662
stateObj._outBuff[stateObj.
_outBytesUsed
+ 7] = (byte)((v >> 56) & 0xff);
1689
if ((stateObj.
_outBytesUsed
+ length) > stateObj._outBuff.Length) {
1698
stateObj._outBuff[stateObj.
_outBytesUsed
+ index] = (byte)((v >> (index * 8)) & 0xff);
6566
if(cBytes < (stateObj._outBuff.Length - stateObj.
_outBytesUsed
)) {
6567
CopyCharsToBytes(carr, offset, stateObj._outBuff, stateObj.
_outBytesUsed
, length);
6593
if(cBytes < (stateObj._outBuff.Length - stateObj.
_outBytesUsed
)) {
6594
CopyStringToBytes(s, offset, stateObj._outBuff, stateObj.
_outBytesUsed
, length);
6702
int bytesLeft = stateObj._outBuff.Length - stateObj.
_outBytesUsed
;
6704
int bytesWritten = encoding.GetBytes(charData, 0, charData.Length, stateObj._outBuff, stateObj.
_outBytesUsed
);
7418
_physicalStateObj._tracePasswordOffset = _physicalStateObj.
_outBytesUsed
;
7448
_physicalStateObj._traceChangePasswordOffset = _physicalStateObj.
_outBytesUsed
;
7744
Debug.Assert(stateObj.
_outBytesUsed
== stateObj._outputHeaderLen, "Output bytes written before total header length");
9801
Debug.Assert(stateObj.
_outBytesUsed
== stateObj._outputHeaderLen, "Output bytes written before total header length");
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (18)
1121
_outBytesUsed
== (_outputHeaderLen + BitConverter.ToInt32(_outBuff, _outputHeaderLen)) &&
1124
(
_outBytesUsed
== _outputHeaderLen && _outputPacketNumber == 1),
2646
_securePasswordOffsetsInBuffer[index] =
_outBytesUsed
;
2654
Debug.Assert((
_outBytesUsed
+ lengthInBytes) < _outBuff.Length, "Passwords cannot be splited into two different packet or the last item which fully fill up _outBuff!!!");
2712
Debug.Assert(
_outBytesUsed
<= _outBuff.Length, "ERROR - TDSParser: _outBytesUsed > _outBuff.Length");
2715
if (
_outBytesUsed
== _outBuff.Length) {
2745
if ((
_outBytesUsed
+ len) > _outBuff.Length) {
2750
int remainder = _outBuff.Length -
_outBytesUsed
;
2753
Buffer.BlockCopy(b, offset, _outBuff,
_outBytesUsed
, remainder);
2778
Buffer.BlockCopy(b, offset, _outBuff,
_outBytesUsed
, len);
2816
&&
_outBytesUsed
== (_outputHeaderLen + BitConverter.ToInt32(_outBuff, _outputHeaderLen))
2818
||
_outBytesUsed
== _outputHeaderLen
2847
_outBuff[2] = (byte)(
_outBytesUsed
>> 8); // length - upper byte
2848
_outBuff[3] = (byte)(
_outBytesUsed
&0xff); // length - lower byte
3062
Bid.TraceBin("<sc.TdsParser.WritePacket|INFO|ADV> Packet sent", _outBuff, (UInt16)
_outBytesUsed
);
3073
SNINativeMethodWrapper.SNIPacketSetData(packet, _outBuff,
_outBytesUsed
, _securePasswords, _securePasswordOffsetsInBuffer);
3194
statistics.SafeAdd(ref statistics._bytesSent,
_outBytesUsed
);
3222
Bid.TraceBin("<sc.TdsParser.WritePacket|INFO|ADV> Packet sent", _outBuff, (UInt16)
_outBytesUsed
);