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(); 67if (_bufferStream.Length > 0) 70_segments.Add(_bufferStream.ToArray()); 137if ((int)_bufferStream.Length == _segmentSize) 139_segments.Add(_bufferStream.ToArray()); 140_bufferStream.SetLength(0); 143var bytesWritten = Math.Min(buffer.Length, _segmentSize - (int)_bufferStream.Length); 145_bufferStream.Write(buffer[..bytesWritten]); 170if ((int)_bufferStream.Length == _segmentSize) 172_segments.Add(_bufferStream.ToArray()); 173_bufferStream.SetLength(0); 176_bufferStream.WriteByte(value);