C# Class Lawo.IO.NonSeekableStream

Inheritance: Stream
Show file Open project: Lawo/ember-plus-sharp

Public Methods

Method Description
Flush ( ) : void

See Stream.Flush.

This method does nothing, derived classes should override as necessary.

FlushAsync ( CancellationToken cancellationToken ) : Task

See Stream.FlushAsync(CancellationToken).

This method does nothing, derived classes should override as necessary.

Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long

See Stream.Seek..

SetLength ( long value ) : void

See Stream.SetLength.

Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
AssertNotDisposed ( ) : void

Initializes a new instance of the NonSeekableStream class.

Checks whether the object has been disposed and if so throws ObjectDisposedException.

CreateNotSupportedException ( ) : Exception

Creates the exception thrown by all unsupported members.

NonSeekableStream ( ) : System

Initializes a new instance of the NonSeekableStream class.

Private Methods

Method Description
DisposeAsync ( CancellationToken cancellationToken ) : Task

Method Details

AssertNotDisposed() protected method

Initializes a new instance of the NonSeekableStream class. Checks whether the object has been disposed and if so throws ObjectDisposedException.
protected AssertNotDisposed ( ) : void
return void

CreateNotSupportedException() protected static method

Creates the exception thrown by all unsupported members.
protected static CreateNotSupportedException ( ) : Exception
return System.Exception

Flush() public method

See Stream.Flush.
This method does nothing, derived classes should override as necessary.
public Flush ( ) : void
return void

FlushAsync() public method

See Stream.FlushAsync(CancellationToken).
This method does nothing, derived classes should override as necessary.
public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

NonSeekableStream() protected method

Initializes a new instance of the NonSeekableStream class.
protected NonSeekableStream ( ) : System
return System

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public final method

See Stream.Seek..
Thrown with each call.
public final Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public final method

See Stream.SetLength.
Thrown with each call.
public final SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void