2 writes to _currentChunk
System.Net.WebClient (2)
src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (2)
98_headChunk = _currentChunk = newChunk; 104_currentChunk = newChunk;
11 references to _currentChunk
System.Net.WebClient (11)
src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (11)
45if (_currentChunk != null) 47int remaining = _currentChunk._buffer.Length - _currentChunk._freeOffset; 51buffer.Slice(0, toCopy).CopyTo(new Span<byte>(_currentChunk._buffer, _currentChunk._freeOffset, toCopy)); 54_currentChunk._freeOffset += toCopy; 87int nextChunkLength = _currentChunk != null ? _currentChunk._buffer.Length * 2 : InitialChunkDefaultSize; 95if (_currentChunk == null) 103_currentChunk._next = newChunk; 119if (_currentChunk != null) throw new NotSupportedException();