5 writes to oldLength
System.Data (5)
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
2480
env.
oldLength
= byteLength;
2518
env.
oldLength
= byteLength;
2557
env.
oldLength
= byteLength;
2638
env.
oldLength
= byteLength;
2668
env.
oldLength
= oldLength;
13 references to oldLength
System.Data (13)
fx\src\data\System\Data\SqlClient\TdsParser.cs (13)
2481
Debug.Assert(env.
oldLength
== 5 || env.
oldLength
== 0, "Improper length in old collation!");
2482
if (env.
oldLength
== 5) {
2488
env.length = 3 + env.newLength + env.
oldLength
;
2519
Debug.Assert(env.
oldLength
== 0 || env.
oldLength
== 8, "Improper length for old transaction id!");
2521
if (env.
oldLength
> 0) {
2532
env.length = 3 + env.newLength + env.
oldLength
;
2558
Debug.Assert(0 == env.
oldLength
, "old length should be zero");
2639
env.oldBinValue = new byte[env.
oldLength
];
2640
if (!stateObj.TryReadByteArray(env.oldBinValue, 0, env.
oldLength
)) {
2645
env.length = 3 + env.newLength + env.
oldLength
;
2672
env.length = 3 + env.newLength * 2 + env.
oldLength
* 2;