6 writes to newLength
System.Data (6)
fx\src\data\System\Data\SqlClient\TdsParser.cs (6)
2461
env.
newLength
= byteLength;
2502
env.
newLength
= byteLength;
2546
if (!stateObj.TryReadInt32(out env.
newLength
)) { // new value has 4 byte length
2585
env.
newLength
= newLength;
2630
env.
newLength
= byteLength;
2666
env.
newLength
= newLength;
16 references to newLength
System.Data (16)
fx\src\data\System\Data\SqlClient\TdsParser.cs (16)
2457
Debug.Assert(env.
newLength
== 5 || env.
newLength
== 0, "Improper length in new collation!");
2462
if (env.
newLength
== 5) {
2488
env.length = 3 + env.
newLength
+ env.oldLength;
2503
Debug.Assert(env.
newLength
== 0 || env.
newLength
== 8, "Improper length for new transaction id!");
2505
if (env.
newLength
> 0) {
2532
env.length = 3 + env.
newLength
+ env.oldLength;
2549
env.newBinValue = new byte[env.
newLength
];
2550
if (!stateObj.TryReadByteArray(env.newBinValue, 0, env.
newLength
)) { // read new value with 4 byte length
2561
env.length = 5 + env.
newLength
;
2610
env.length = env.
newLength
+ oldLength + 5; // 5=2*sizeof(UInt16)+sizeof(byte) [token+newLength+oldLength]
2631
env.newBinValue = new byte[env.
newLength
];
2632
if (!stateObj.TryReadByteArray(env.newBinValue, 0, env.
newLength
)) {
2645
env.length = 3 + env.
newLength
+ env.oldLength;
2672
env.length = 3 + env.
newLength
* 2 + env.oldLength * 2;