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)
55
get { return new ArraySegment<byte>(
_buffer
, _bufferOffset, _bufferCount); }
162
_bytePool.Return(
_buffer
);
210
Buffer.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);
281
if (minCount >
_buffer
.Length)
283
throw new ArgumentOutOfRangeException(nameof(minCount), minCount, "The value must be smaller than the buffer size: " +
_buffer
.Length);
292
Buffer.BlockCopy(
_buffer
, _bufferOffset,
_buffer
, 0, _bufferCount);
296
int read = _inner.Read(
_buffer
, _bufferOffset + _bufferCount,
_buffer
.Length - _bufferCount - _bufferOffset);
314
if (minCount >
_buffer
.Length)
316
throw new ArgumentOutOfRangeException(nameof(minCount), minCount, "The value must be smaller than the buffer size: " +
_buffer
.Length);
325
Buffer.BlockCopy(
_buffer
, _bufferOffset,
_buffer
, 0, _bufferCount);
329
int read = await _inner.ReadAsync(
_buffer
.AsMemory(_bufferOffset + _bufferCount,
_buffer
.Length - _bufferCount - _bufferOffset), cancellationToken);
391
var b =
_buffer
[_bufferOffset];
397
builder.Write(
_buffer
.AsSpan(_bufferOffset - writeCount, writeCount));
409
builder.Write(
_buffer
.AsSpan(_bufferOffset - writeCount, writeCount));