NanoByte.Common  2.9.0
NanoByte.Common.Streams.DelegatingStream Class Reference

Forwards all requests to another System.IO.Streams. Useful as a base class for decorators/wrappers. More...

Inheritance diagram for NanoByte.Common.Streams.DelegatingStream:
NanoByte.Common.Streams.ExtraDisposeStream NanoByte.Common.Streams.OffsetStream NanoByte.Common.Streams.ProgressStream NanoByte.Common.Streams.ShadowingStream

Public Member Functions

override void Flush ()
 
override long Seek (long offset, SeekOrigin origin)
 
override void SetLength (long value)
 
override int Read (byte[] buffer, int offset, int count)
 
override void Write (byte[] buffer, int offset, int count)
 
override Task FlushAsync (CancellationToken cancellationToken)
 
override Task< int > ReadAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
override Task WriteAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
override int Read (Span< byte > buffer)
 
override ValueTask< int > ReadAsync (Memory< byte > buffer, CancellationToken cancellationToken=default)
 
override void Write (ReadOnlySpan< byte > buffer)
 
override ValueTask WriteAsync (ReadOnlyMemory< byte > buffer, CancellationToken cancellationToken=default)
 

Protected Member Functions

 DelegatingStream (Stream underlyingStream)
 Creates a new delegating stream. More...
 
override void Dispose (bool disposing)
 

Protected Attributes

readonly Stream UnderlyingStream
 Underlying stream to delegate to. More...
 

Properties

override bool CanRead [get]
 
override bool CanSeek [get]
 
override bool CanWrite [get]
 
override long Length [get]
 
override bool CanTimeout [get]
 
override int ReadTimeout [get]
 
override int WriteTimeout [get]
 
override long Position [get, set]
 

Detailed Description

Forwards all requests to another System.IO.Streams. Useful as a base class for decorators/wrappers.

Constructor & Destructor Documentation

◆ DelegatingStream()

NanoByte.Common.Streams.DelegatingStream.DelegatingStream ( Stream  underlyingStream)
inlineprotected

Creates a new delegating stream.

Parameters
underlyingStreamUnderlying stream to delegate to. Will be disposed together with this stream.

Member Data Documentation

◆ UnderlyingStream

readonly Stream NanoByte.Common.Streams.DelegatingStream.UnderlyingStream
protected

Underlying stream to delegate to.


The documentation for this class was generated from the following file: