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)
290
Debug.Assert(null != _parser._physicalStateObj.
_inBuff
, "no in buffer?");
293
_parser._physicalStateObj.
_inBuff
.Length, "Unexpected unequal buffers.");
473
if (
_inBuff
[_inBytesUsed] == TdsEnums.SQLROW) {
477
else if (
_inBuff
[_inBytesUsed] == TdsEnums.SQLNBCROW) {
734
Debug.Assert(_outBuff.Length ==
_inBuff
.Length, "Unexpected unequal buffers.");
988
Buffer.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;
1051
Debug.Assert(
_inBuff
!= null, "packet buffer should not be null!");
1112
Debug.Assert( (_outBuff == null &&
_inBuff
== null) ||
1113
(_outBuff.Length ==
_inBuff
.Length),
1115
Debug.Assert( (_outBuff == null &&
_inBuff
== null) ||
1118
Debug.Assert(
_inBuff
== null
1127
if (
_inBuff
== null ||
_inBuff
.Length != size) { // We only check _inBuff, since two buffers should be consistent.
1129
if (
_inBuff
== null) {
1134
else if (size !=
_inBuff
.Length) {
1138
byte[] temp =
_inBuff
;
1144
if ((temp.Length < _inBytesUsed + remainingData) || (
_inBuff
.Length < remainingData)) {
1145
string errormessage = Res.GetString(Res.SQL_InvalidInternalPacketSize) + ' ' + temp.Length + ", " + _inBytesUsed + ", " + remainingData + ", " +
_inBuff
.Length;
1148
Buffer.BlockCopy(temp, _inBytesUsed,
_inBuff
, 0, remainingData);
1235
Buffer.BlockCopy(
_inBuff
, _inBytesUsed, buff, offset + totalRead, bytesToRead);
1284
value = (
_inBuff
[_inBytesUsed++]);
1311
buffer =
_inBuff
;
1344
buffer =
_inBuff
;
1376
value = BitConverter.ToInt32(
_inBuff
, _inBytesUsed);
1419
value = BitConverter.ToInt64(
_inBuff
, _inBytesUsed);
1450
buffer =
_inBuff
;
1495
value = BitConverter.ToUInt32(
_inBuff
, _inBytesUsed);
1525
value = BitConverter.ToSingle(
_inBuff
, _inBytesUsed);
1555
value = BitConverter.ToDouble(
_inBuff
, _inBytesUsed);
1589
buf =
_inBuff
;
1654
buf =
_inBuff
;
1908
_inBuff = new byte[
_inBuff
.Length];
2409
UInt32 getDataError = SNINativeMethodWrapper.SNIPacketGetData(packet,
_inBuff
, ref dataSize);
2412
if (
_inBuff
.Length < dataSize) {
2422
_snapshot.PushBuffer(
_inBuff
, _inBytesRead);
2434
Bid.TraceBin("<sc.TdsParser.ReadNetworkPacketAsyncCallback|INFO|ADV> Packet read",
_inBuff
, (UInt16)_inBytesRead);
3669
PushBuffer(_stateObj.
_inBuff
, _stateObj._inBytesRead);