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)
1704
public override bool CanRead => _canRead &&
_stream
.CanRead;
1705
public override bool CanSeek => _canSeek &&
_stream
.CanSeek;
1706
public override bool CanWrite =>
_stream
.CanWrite;
1707
public override long Length =>
_stream
.Length;
1710
get =>
_stream
.Position;
1711
set =>
_stream
.Position = _canSeek ? value : throw new NotSupportedException();
1714
public override void Flush() =>
_stream
.Flush();
1715
public override int Read(byte[] buffer, int offset, int count) => _canRead ?
_stream
.Read(buffer, offset, count) : throw new NotSupportedException();
1716
public override long Seek(long offset, SeekOrigin origin) =>
_stream
.Seek(offset, origin);
1717
public override void SetLength(long value) =>
_stream
.SetLength(value);
1718
public override void Write(byte[] buffer, int offset, int count) =>
_stream
.Write(buffer, offset, count);