1 write to _stream
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
72
_stream
= stream;
15 references to _stream
System.ComponentModel.TypeConverter (15)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (15)
77
public override bool CanRead =>
_stream
.CanRead;
79
public override bool CanSeek =>
_stream
.CanSeek;
81
public override bool CanWrite =>
_stream
.CanWrite;
83
public override long Length =>
_stream
.Length;
85
public override long Position { get =>
_stream
.Position; set =>
_stream
.Position = value; }
87
public override void Flush() =>
_stream
.Flush();
94
Debug.Assert(
_stream
.Position != 0, "Expected the first byte to be read first");
95
if (
_stream
.Position == 1)
100
return
_stream
.Read(buffer.Slice(1)) + 1;
102
return
_stream
.Read(buffer);
105
public override long Seek(long offset, SeekOrigin origin) =>
_stream
.Seek(offset, origin);
107
public override void SetLength(long value) =>
_stream
.SetLength(value);
109
public override void Write(byte[] buffer, int offset, int count) =>
_stream
.Write(buffer, offset, count);
113
byte read = (byte)
_stream
.ReadByte();