5 writes to _inBuff
System.Data (5)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (5)
1130_inBuff = new byte[size]; 1140_inBuff = new byte[size]; 1157_inBuff = new byte[size]; 1908_inBuff = new byte[_inBuff.Length]; 3632_stateObj._inBuff = next.Buffer;
40 references to _inBuff
System.Data (40)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (40)
290Debug.Assert(null != _parser._physicalStateObj._inBuff, "no in buffer?"); 293_parser._physicalStateObj._inBuff.Length, "Unexpected unequal buffers."); 473if (_inBuff[_inBytesUsed] == TdsEnums.SQLROW) { 477else if (_inBuff[_inBytesUsed] == TdsEnums.SQLNBCROW) { 734Debug.Assert(_outBuff.Length == _inBuff.Length, "Unexpected unequal buffers."); 988Buffer.BlockCopy(_inBuff, _inBytesUsed, _partialHeaderBuffer, _partialHeaderBytesRead, copy); 1029_messageStatus = _inBuff[_inBytesUsed + 1]; 1030_inBytesPacket = ((int)_inBuff[_inBytesUsed + TdsEnums.HEADER_LEN_FIELD_OFFSET] << 8 | 1031(int)_inBuff[_inBytesUsed + TdsEnums.HEADER_LEN_FIELD_OFFSET + 1]) - _inputHeaderLen; 1051Debug.Assert(_inBuff != null, "packet buffer should not be null!"); 1112Debug.Assert( (_outBuff == null && _inBuff == null) || 1113(_outBuff.Length == _inBuff.Length), 1115Debug.Assert( (_outBuff == null && _inBuff == null) || 1118Debug.Assert( _inBuff == null 1127if (_inBuff == null || _inBuff.Length != size) { // We only check _inBuff, since two buffers should be consistent. 1129if (_inBuff == null) { 1134else if (size != _inBuff.Length) { 1138byte[] temp = _inBuff; 1144if ((temp.Length < _inBytesUsed + remainingData) || (_inBuff.Length < remainingData)) { 1145string errormessage = Res.GetString(Res.SQL_InvalidInternalPacketSize) + ' ' + temp.Length + ", " + _inBytesUsed + ", " + remainingData + ", " + _inBuff.Length; 1148Buffer.BlockCopy(temp, _inBytesUsed, _inBuff, 0, remainingData); 1235Buffer.BlockCopy(_inBuff, _inBytesUsed, buff, offset + totalRead, bytesToRead); 1284value = (_inBuff[_inBytesUsed++]); 1311buffer = _inBuff; 1344buffer = _inBuff; 1376value = BitConverter.ToInt32(_inBuff, _inBytesUsed); 1419value = BitConverter.ToInt64(_inBuff, _inBytesUsed); 1450buffer = _inBuff; 1495value = BitConverter.ToUInt32(_inBuff, _inBytesUsed); 1525value = BitConverter.ToSingle(_inBuff, _inBytesUsed); 1555value = BitConverter.ToDouble(_inBuff, _inBytesUsed); 1589buf = _inBuff; 1654buf = _inBuff; 1908_inBuff = new byte[_inBuff.Length]; 2409UInt32 getDataError = SNINativeMethodWrapper.SNIPacketGetData(packet, _inBuff, ref dataSize); 2412if (_inBuff.Length < dataSize) { 2422_snapshot.PushBuffer(_inBuff, _inBytesRead); 2434Bid.TraceBin("<sc.TdsParser.ReadNetworkPacketAsyncCallback|INFO|ADV> Packet read", _inBuff, (UInt16)_inBytesRead); 3669PushBuffer(_stateObj._inBuff, _stateObj._inBytesRead);