8 writes to _chunkBytesRemaining
System.ServiceModel.NetFramingBase (8)
21 references to _chunkBytesRemaining
System.ServiceModel.NetFramingBase (21)
System\ServiceModel\Channels\SingletonConnectionReader.cs (21)
351int bytesToCopy = Math.Min(_chunkBytesRemaining,
361if (_chunkBytesRemaining == 0 && _chunkBufferSize > 0)
370else if (_chunkBytesRemaining > 0)
375if (int.MaxValue - _chunkBytesRemaining >= IntEncoder.MaxEncodedSize)
377bytesToRead = Math.Min(count, _chunkBytesRemaining + IntEncoder.MaxEncodedSize);
383DecodeData(buffer, offset, Math.Min(bytesRead, _chunkBytesRemaining));
385if (bytesRead > _chunkBytesRemaining)
387result += _chunkBytesRemaining;
388int overflowCount = bytesRead - _chunkBytesRemaining;
389int overflowOffset = offset + _chunkBytesRemaining;
427if (_chunkBufferSize > 0 || _chunkBytesRemaining > 0
455int bytesToCopy = Math.Min(_chunkBytesRemaining,
465if (_chunkBytesRemaining == 0 && _chunkBufferSize > 0)
474else if (_chunkBytesRemaining > 0)
479if (int.MaxValue - _chunkBytesRemaining >= IntEncoder.MaxEncodedSize)
481bytesToRead = Math.Min(count, _chunkBytesRemaining + IntEncoder.MaxEncodedSize);
487DecodeData(buffer, offset, Math.Min(bytesRead, _chunkBytesRemaining));
489if (bytesRead > _chunkBytesRemaining)
491result += _chunkBytesRemaining;
492int overflowCount = bytesRead - _chunkBytesRemaining;
493int overflowOffset = offset + _chunkBytesRemaining;