1 write to _innerStream
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
NotSeekableStream.cs (1)
17
_innerStream
= memoryStream;
10 references to _innerStream
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (10)
NotSeekableStream.cs (10)
26
public override long Length =>
_innerStream
.Length;
28
public override long Position { get =>
_innerStream
.Position; set => throw new NotSupportedException("This is not a seekable stream."); }
30
public override void Flush() =>
_innerStream
.Flush();
32
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) =>
_innerStream
.ReadAsync(buffer, offset, count, cancellationToken);
34
public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default) =>
_innerStream
.ReadAsync(buffer, cancellationToken);
36
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) =>
_innerStream
.WriteAsync(buffer, offset, count, cancellationToken);
38
public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) =>
_innerStream
.WriteAsync(buffer, cancellationToken);
40
public override int Read(byte[] buffer, int offset, int count) =>
_innerStream
.Read(buffer, offset, count);
44
public override void SetLength(long value) =>
_innerStream
.SetLength(value);
46
public override void Write(byte[] buffer, int offset, int count) =>
_innerStream
.Write(buffer, offset, count);