1 write to _buffer
System.Net.WebClient (1)
src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (1)
129
internal MemoryChunk(int bufferSize) {
_buffer
= new byte[bufferSize]; }
5 references to _buffer
System.Net.WebClient (5)
src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (5)
29
Debug.Assert(chunk._next == null || chunk._freeOffset == chunk.
_buffer
.Length);
30
Buffer.BlockCopy(chunk.
_buffer
, 0, result, offset, chunk._freeOffset);
47
int remaining = _currentChunk.
_buffer
.Length - _currentChunk._freeOffset;
51
buffer.Slice(0, toCopy).CopyTo(new Span<byte>(_currentChunk.
_buffer
, _currentChunk._freeOffset, toCopy));
87
int nextChunkLength = _currentChunk != null ? _currentChunk.
_buffer
.Length * 2 : InitialChunkDefaultSize;