1 write to _stream
System.Drawing.Common.Tests (1)
System\Drawing\BitmapTests.cs (1)
1699_stream = stream;
11 references to _stream
System.Drawing.Common.Tests (11)
System\Drawing\BitmapTests.cs (11)
1704public override bool CanRead => _canRead && _stream.CanRead; 1705public override bool CanSeek => _canSeek && _stream.CanSeek; 1706public override bool CanWrite => _stream.CanWrite; 1707public override long Length => _stream.Length; 1710get => _stream.Position; 1711set => _stream.Position = _canSeek ? value : throw new NotSupportedException(); 1714public override void Flush() => _stream.Flush(); 1715public override int Read(byte[] buffer, int offset, int count) => _canRead ? _stream.Read(buffer, offset, count) : throw new NotSupportedException(); 1716public override long Seek(long offset, SeekOrigin origin) => _stream.Seek(offset, origin); 1717public override void SetLength(long value) => _stream.SetLength(value); 1718public override void Write(byte[] buffer, int offset, int count) => _stream.Write(buffer, offset, count);