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