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)
1469stateObj._outBuff[1] = (Byte)(stateObj._outBuff[1] | TdsEnums.ST_RESET_CONNECTION_PRESERVE_TRANSACTION); 1473stateObj._outBuff[1] = (Byte)(stateObj._outBuff[1] | TdsEnums.ST_RESET_CONNECTION); 1534if ((stateObj._outBytesUsed + 2) > stateObj._outBuff.Length) { 1541stateObj._outBuff[stateObj._outBytesUsed] = (byte)(v & 0xff); 1542stateObj._outBuff[stateObj._outBytesUsed + 1] = (byte)((v >> 8) & 0xff); 1585if ((stateObj._outBytesUsed + 4) > stateObj._outBuff.Length) { 1594stateObj._outBuff[stateObj._outBytesUsed] = (byte)(v & 0xff); 1595stateObj._outBuff[stateObj._outBytesUsed + 1] = (byte)((v >> 8) & 0xff); 1596stateObj._outBuff[stateObj._outBytesUsed + 2] = (byte)((v >> 16) & 0xff); 1597stateObj._outBuff[stateObj._outBytesUsed + 3] = (byte)((v >> 24) & 0xff); 1646if ((stateObj._outBytesUsed + 8) > stateObj._outBuff.Length) { 1655stateObj._outBuff[stateObj._outBytesUsed] = (byte)(v & 0xff); 1656stateObj._outBuff[stateObj._outBytesUsed + 1] = (byte)((v >> 8) & 0xff); 1657stateObj._outBuff[stateObj._outBytesUsed + 2] = (byte)((v >> 16) & 0xff); 1658stateObj._outBuff[stateObj._outBytesUsed + 3] = (byte)((v >> 24) & 0xff); 1659stateObj._outBuff[stateObj._outBytesUsed + 4] = (byte)((v >> 32) & 0xff); 1660stateObj._outBuff[stateObj._outBytesUsed + 5] = (byte)((v >> 40) & 0xff); 1661stateObj._outBuff[stateObj._outBytesUsed + 6] = (byte)((v >> 48) & 0xff); 1662stateObj._outBuff[stateObj._outBytesUsed + 7] = (byte)((v >> 56) & 0xff); 1689if ((stateObj._outBytesUsed + length) > stateObj._outBuff.Length) { 1698stateObj._outBuff[stateObj._outBytesUsed + index] = (byte)((v >> (index * 8)) & 0xff); 6566if(cBytes < (stateObj._outBuff.Length - stateObj._outBytesUsed)) { 6567CopyCharsToBytes(carr, offset, stateObj._outBuff, stateObj._outBytesUsed, length); 6593if(cBytes < (stateObj._outBuff.Length - stateObj._outBytesUsed)) { 6594CopyStringToBytes(s, offset, stateObj._outBuff, stateObj._outBytesUsed, length); 6702int bytesLeft = stateObj._outBuff.Length - stateObj._outBytesUsed; 6704int bytesWritten = encoding.GetBytes(charData, 0, charData.Length, stateObj._outBuff, stateObj._outBytesUsed);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (31)
291Debug.Assert(null != _parser._physicalStateObj._outBuff, "no out buffer?"); 292Debug.Assert(_parser._physicalStateObj._outBuff.Length == 296SetPacketSize(_parser._physicalStateObj._outBuff.Length); 734Debug.Assert(_outBuff.Length == _inBuff.Length, "Unexpected unequal buffers."); 736myInfo.defaultBufferSize = _outBuff.Length; // Obtain packet size from outBuff size. 1112Debug.Assert( (_outBuff == null && _inBuff == null) || 1113(_outBuff.Length == _inBuff.Length), 1115Debug.Assert( (_outBuff == null && _inBuff == null) || 1121_outBytesUsed == (_outputHeaderLen + BitConverter.ToInt32(_outBuff, _outputHeaderLen)) && 2654Debug.Assert((_outBytesUsed + lengthInBytes) < _outBuff.Length, "Passwords cannot be splited into two different packet or the last item which fully fill up _outBuff!!!"); 2712Debug.Assert(_outBytesUsed <= _outBuff.Length, "ERROR - TDSParser: _outBytesUsed > _outBuff.Length"); 2715if (_outBytesUsed == _outBuff.Length) { 2719_outBuff[_outBytesUsed++] = b; 2745if ((_outBytesUsed + len) > _outBuff.Length) { 2750int remainder = _outBuff.Length - _outBytesUsed; 2753Buffer.BlockCopy(b, offset, _outBuff, _outBytesUsed, remainder); 2778Buffer.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 3062Bid.TraceBin("<sc.TdsParser.WritePacket|INFO|ADV> Packet sent", _outBuff, (UInt16)_outBytesUsed); 3073SNINativeMethodWrapper.SNIPacketSetData(packet, _outBuff, _outBytesUsed, _securePasswords, _securePasswordOffsetsInBuffer); 3205_outBuff[i] = 0; 3215_outBuff[i] = 0; 3222Bid.TraceBin("<sc.TdsParser.WritePacket|INFO|ADV> Packet sent", _outBuff, (UInt16)_outBytesUsed);