1 write to _outBuff
System.Data (1)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
1164
_outBuff
= new byte[size];
60 references to _outBuff
System.Data (60)
fx\src\data\System\Data\SqlClient\TdsParser.cs (29)
1469
stateObj.
_outBuff
[1] = (Byte)(stateObj.
_outBuff
[1] | TdsEnums.ST_RESET_CONNECTION_PRESERVE_TRANSACTION);
1473
stateObj.
_outBuff
[1] = (Byte)(stateObj.
_outBuff
[1] | TdsEnums.ST_RESET_CONNECTION);
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);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (31)
291
Debug.Assert(null != _parser._physicalStateObj.
_outBuff
, "no out buffer?");
292
Debug.Assert(_parser._physicalStateObj.
_outBuff
.Length ==
296
SetPacketSize(_parser._physicalStateObj.
_outBuff
.Length);
734
Debug.Assert(
_outBuff
.Length == _inBuff.Length, "Unexpected unequal buffers.");
736
myInfo.defaultBufferSize =
_outBuff
.Length; // Obtain packet size from outBuff size.
1112
Debug.Assert( (
_outBuff
== null && _inBuff == null) ||
1113
(
_outBuff
.Length == _inBuff.Length),
1115
Debug.Assert( (
_outBuff
== null && _inBuff == null) ||
1121
_outBytesUsed == (_outputHeaderLen + BitConverter.ToInt32(
_outBuff
, _outputHeaderLen)) &&
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) {
2719
_outBuff
[_outBytesUsed++] = b;
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))
2845
_outBuff
[0] = _outputMessageType; // Message Type
2846
_outBuff
[1] = status;
2847
_outBuff
[2] = (byte)(_outBytesUsed >> 8); // length - upper byte
2848
_outBuff
[3] = (byte)(_outBytesUsed&0xff); // length - lower byte
2849
_outBuff
[4] = 0; // channel
2850
_outBuff
[5] = 0;
2851
_outBuff
[6] = packetNumber; // packet
2852
_outBuff
[7] = 0; // window
3062
Bid.TraceBin("<sc.TdsParser.WritePacket|INFO|ADV> Packet sent",
_outBuff
, (UInt16)_outBytesUsed);
3073
SNINativeMethodWrapper.SNIPacketSetData(packet,
_outBuff
, _outBytesUsed, _securePasswords, _securePasswordOffsetsInBuffer);
3205
_outBuff
[i] = 0;
3215
_outBuff
[i] = 0;
3222
Bid.TraceBin("<sc.TdsParser.WritePacket|INFO|ADV> Packet sent",
_outBuff
, (UInt16)_outBytesUsed);