1 write to _buffer
Microsoft.AspNetCore.WebUtilities (1)
BufferedReadStream.cs (1)
47_buffer = bytePool.Rent(bufferSize);
22 references to _buffer
Microsoft.AspNetCore.WebUtilities (22)
BufferedReadStream.cs (22)
55get { return new ArraySegment<byte>(_buffer, _bufferOffset, _bufferCount); } 162_bytePool.Return(_buffer); 210Buffer.BlockCopy(_buffer, _bufferOffset, buffer, offset, toCopy); 232_buffer.AsMemory(_bufferOffset, toCopy).CopyTo(buffer); 253_bufferCount = _inner.Read(_buffer, 0, _buffer.Length); 270_bufferCount = await _inner.ReadAsync(_buffer.AsMemory(), cancellationToken); 281if (minCount > _buffer.Length) 283throw new ArgumentOutOfRangeException(nameof(minCount), minCount, "The value must be smaller than the buffer size: " + _buffer.Length); 292Buffer.BlockCopy(_buffer, _bufferOffset, _buffer, 0, _bufferCount); 296int read = _inner.Read(_buffer, _bufferOffset + _bufferCount, _buffer.Length - _bufferCount - _bufferOffset); 314if (minCount > _buffer.Length) 316throw new ArgumentOutOfRangeException(nameof(minCount), minCount, "The value must be smaller than the buffer size: " + _buffer.Length); 325Buffer.BlockCopy(_buffer, _bufferOffset, _buffer, 0, _bufferCount); 329int read = await _inner.ReadAsync(_buffer.AsMemory(_bufferOffset + _bufferCount, _buffer.Length - _bufferCount - _bufferOffset), cancellationToken); 391var b = _buffer[_bufferOffset]; 397builder.Write(_buffer.AsSpan(_bufferOffset - writeCount, writeCount)); 409builder.Write(_buffer.AsSpan(_bufferOffset - writeCount, writeCount));