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)
45
if (
_currentChunk
!= null)
47
int remaining =
_currentChunk
._buffer.Length -
_currentChunk
._freeOffset;
51
buffer.Slice(0, toCopy).CopyTo(new Span<byte>(
_currentChunk
._buffer,
_currentChunk
._freeOffset, toCopy));
54
_currentChunk
._freeOffset += toCopy;
87
int nextChunkLength =
_currentChunk
!= null ?
_currentChunk
._buffer.Length * 2 : InitialChunkDefaultSize;
95
if (
_currentChunk
== null)
103
_currentChunk
._next = newChunk;
119
if (
_currentChunk
!= null) throw new NotSupportedException();