10 writes to _longlenleft
System.Data (10)
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
11142
stateObj.
_longlenleft
-= ((ulong)charsRead << 1);
11218
stateObj.
_longlenleft
--;
11228
stateObj.
_longlenleft
--;
11345
stateObj.
_longlenleft
-= (ulong)bytesSkipped;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (6)
1702
_longlenleft
= 0;
1712
_longlenleft
= 0;
1716
_longlenleft
= (ulong)chunklen;
1738
_longlenleft
-= (ulong)bytesToRead;
1810
_longlenleft
-= (ulong)bytesRead;
3696
_stateObj.
_longlenleft
= _snapshotLongLenLeft;
42 references to _longlenleft
System.Data (42)
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (1)
81
Debug.Assert(stateObj._longlen == 0 && stateObj.
_longlenleft
== 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (28)
5406
Debug.Assert((stateObj._longlen == 0) && (stateObj.
_longlenleft
== 0), "ReadSqlValue did not read plp field completely, longlen =" + stateObj._longlen.ToString((IFormatProvider)null) + ",longlenleft=" + stateObj.
_longlenleft
.ToString((IFormatProvider)null));
11124
if (stateObj.
_longlenleft
== 0) {
11133
if ((stateObj.
_longlenleft
>> 1) < (ulong)len)
11134
charsRead = (int)(stateObj.
_longlenleft
>> 1);
11164
Debug.Assert(stateObj.
_longlenleft
== 0);
11180
if (stateObj.
_longlenleft
== 0) {
11186
if (stateObj.
_longlenleft
== 0) { // Data read complete
11195
charsRead = (int)Math.Min((stateObj.
_longlenleft
+ 1) >> 1, (ulong)charsLeft);
11213
if (stateObj.
_longlenleft
== 1 && (charsLeft > 0)) {
11223
Debug.Assert((stateObj.
_longlenleft
!= 0), "ReadPlpUnicodeChars: Odd byte left at the end!");
11236
if (stateObj.
_longlenleft
== 0) { // Read the next chunk or cleanup state if hit the end
11243
if (stateObj.
_longlenleft
== 0) // Data read complete
11256
Debug.Assert(stateObj.
_longlenleft
== 0);
11266
if (stateObj.
_longlenleft
== 0) {
11268
if (stateObj.
_longlenleft
== 0) {// Data read complete
11290
bytesRead = (int)Math.Min(stateObj.
_longlenleft
, (ulong)charsLeft);
11302
if (stateObj.
_longlenleft
== 0) // Read the next chunk or cleanup state if hit the end
11305
if (stateObj.
_longlenleft
== 0) { // Data read complete
11327
if (stateObj.
_longlenleft
== 0) {
11335
(stateObj.
_longlenleft
> 0)) {
11336
if (stateObj.
_longlenleft
> Int32.MaxValue)
11339
bytesSkipped = (int)stateObj.
_longlenleft
;
11348
if (stateObj.
_longlenleft
== 0) {
11360
if ((stateObj._longlen != 0) && (stateObj.
_longlenleft
== 0))
11363
return stateObj.
_longlenleft
;
11367
if ((stateObj._longlen != 0) && (stateObj.
_longlenleft
== 0)) {
11373
left = stateObj.
_longlenleft
;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (13)
1688
Debug.Assert(
_longlenleft
== 0, "Out of synch length read request");
1727
lengthLeft =
_longlenleft
;
1733
Debug.Assert(
_longlenleft
> 0, "Read when no data available");
1736
int bytesToRead = (int)Math.Min(
_longlenleft
, (ulong)len);
1756
Debug.Assert(
_longlenleft
== 0);
1777
if (
_longlenleft
== 0) {
1782
if (
_longlenleft
== 0) { // Data read complete
1789
buff = new byte[
_longlenleft
];
1795
int bytesToRead = (int)Math.Min(
_longlenleft
, (ulong)bytesLeft);
1805
Debug.Assert((ulong)bytesRead <=
_longlenleft
, "Read more bytes than is available");
1815
if (
_longlenleft
== 0) { // Read the next chunk or cleanup state if hit the end
1824
if (
_longlenleft
== 0) // Data read complete
3654
_snapshotLongLenLeft = _stateObj.
_longlenleft
;