Table of Contents

Class DelegatingStream

Namespace
The.Utility
Assembly
Instagile.Model.dll
public abstract class DelegatingStream : Stream, IDisposable
Inheritance
DelegatingStream
Implements
Derived
Inherited Members

Constructors

DelegatingStream(Stream)

protected DelegatingStream(Stream baseStream)

Parameters

baseStream Stream

Properties

BaseStream

public Stream BaseStream { get; }

Property Value

Stream

CanRead

public override bool CanRead { get; }

Property Value

bool

CanSeek

public override bool CanSeek { get; }

Property Value

bool

CanTimeout

public override bool CanTimeout { get; }

Property Value

bool

CanWrite

public override bool CanWrite { get; }

Property Value

bool

Length

public override long Length { get; }

Property Value

long

Position

public override long Position { get; set; }

Property Value

long

ReadTimeout

public override int ReadTimeout { get; set; }

Property Value

int

WriteTimeout

public override int WriteTimeout { get; set; }

Property Value

int

Methods

BeginRead(byte[], int, int, AsyncCallback?, object?)

public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)

Parameters

buffer byte[]
offset int
count int
callback AsyncCallback
state object

Returns

IAsyncResult

BeginWrite(byte[], int, int, AsyncCallback?, object?)

public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)

Parameters

buffer byte[]
offset int
count int
callback AsyncCallback
state object

Returns

IAsyncResult

CopyToAsync(Stream, int, CancellationToken)

public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)

Parameters

destination Stream
bufferSize int
cancellationToken CancellationToken

Returns

Task

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

EndRead(IAsyncResult)

public override int EndRead(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

Returns

int

EndWrite(IAsyncResult)

public override void EndWrite(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

Flush()

public override void Flush()

FlushAsync(CancellationToken)

public override Task FlushAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

Read(byte[], int, int)

public override int Read(byte[] buffer, int offset, int count)

Parameters

buffer byte[]
offset int
count int

Returns

int

ReadAsync(byte[], int, int, CancellationToken)

public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)

Parameters

buffer byte[]
offset int
count int
cancellationToken CancellationToken

Returns

Task<int>

ReadByte()

public override int ReadByte()

Returns

int

Seek(long, SeekOrigin)

public override long Seek(long offset, SeekOrigin origin)

Parameters

offset long
origin SeekOrigin

Returns

long

SetLength(long)

public override void SetLength(long value)

Parameters

value long

Write(byte[], int, int)

public override void Write(byte[] buffer, int offset, int count)

Parameters

buffer byte[]
offset int
count int

WriteAsync(byte[], int, int, CancellationToken)

public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)

Parameters

buffer byte[]
offset int
count int
cancellationToken CancellationToken

Returns

Task

WriteByte(byte)

public override void WriteByte(byte value)

Parameters

value byte