14 references to _bufferStream
Microsoft.AspNetCore.Shared.Tests (14)
src\Shared\SegmentWriteStream.cs (14)
59
_bufferStream
.SetLength(0);
60
_bufferStream
.Capacity = 0;
61
_bufferStream
.Dispose();
67
if (
_bufferStream
.Length > 0)
70
_segments.Add(
_bufferStream
.ToArray());
137
if ((int)
_bufferStream
.Length == _segmentSize)
139
_segments.Add(
_bufferStream
.ToArray());
140
_bufferStream
.SetLength(0);
143
var bytesWritten = Math.Min(buffer.Length, _segmentSize - (int)
_bufferStream
.Length);
145
_bufferStream
.Write(buffer[..bytesWritten]);
170
if ((int)
_bufferStream
.Length == _segmentSize)
172
_segments.Add(
_bufferStream
.ToArray());
173
_bufferStream
.SetLength(0);
176
_bufferStream
.WriteByte(value);