C# Класс OpenStack.IO.DelegatingStream

This class operates as a wrapper around an underlying Stream instance.
Наследование: System.IO.Stream
Показать файл Открыть проект

Открытые методы

Метод Описание
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
Close ( ) : void
CopyToAsync ( System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken ) : System.Threading.Tasks.Task
DelegatingStream ( System.IO.Stream underlyingStream ) : System

Initializes a new instance of the DelegatingStream class from the specified Stream.

DelegatingStream ( System.IO.Stream underlyingStream, bool ownsStream ) : System

Initializes a new instance of the DelegatingStream class from the specified Stream.

EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
FlushAsync ( System.Threading.CancellationToken cancellationToken ) : System.Threading.Tasks.Task
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( byte buffer, int offset, int count, System.Threading.CancellationToken cancellationToken ) : Task
ReadByte ( ) : int
Seek ( long offset, System.IO.SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
WriteAsync ( byte buffer, int offset, int count, System.Threading.CancellationToken cancellationToken ) : System.Threading.Tasks.Task
WriteByte ( byte value ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Описание методов

BeginRead() публичный Метод

public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Результат IAsyncResult

BeginWrite() публичный Метод

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Результат IAsyncResult

Close() публичный Метод

public Close ( ) : void
Результат void

CopyToAsync() публичный Метод

public CopyToAsync ( System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken ) : System.Threading.Tasks.Task
destination System.IO.Stream
bufferSize int
cancellationToken System.Threading.CancellationToken
Результат System.Threading.Tasks.Task

DelegatingStream() публичный Метод

Initializes a new instance of the DelegatingStream class from the specified Stream.
/// If is . ///
public DelegatingStream ( System.IO.Stream underlyingStream ) : System
underlyingStream System.IO.Stream The stream to wrap.
Результат System

DelegatingStream() публичный Метод

Initializes a new instance of the DelegatingStream class from the specified Stream.
/// If is . ///
public DelegatingStream ( System.IO.Stream underlyingStream, bool ownsStream ) : System
underlyingStream System.IO.Stream The stream to wrap.
ownsStream bool /// if this object owns the wrapped stream, and should dispose /// of it when this instance is closed or disposed. /// -or- /// if this object should not dispose of the wrapped stream. /// The default value is . ///
Результат System

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EndRead() публичный Метод

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Результат int

EndWrite() публичный Метод

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

FlushAsync() публичный Метод

public FlushAsync ( System.Threading.CancellationToken cancellationToken ) : System.Threading.Tasks.Task
cancellationToken System.Threading.CancellationToken
Результат System.Threading.Tasks.Task

Read() публичный Метод

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Результат int

ReadAsync() публичный Метод

public ReadAsync ( byte buffer, int offset, int count, System.Threading.CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
Результат Task

ReadByte() публичный Метод

public ReadByte ( ) : int
Результат int

Seek() публичный Метод

public Seek ( long offset, System.IO.SeekOrigin origin ) : long
offset long
origin System.IO.SeekOrigin
Результат long

SetLength() публичный Метод

public SetLength ( long value ) : void
value long
Результат void

Write() публичный Метод

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void

WriteAsync() публичный Метод

public WriteAsync ( byte buffer, int offset, int count, System.Threading.CancellationToken cancellationToken ) : System.Threading.Tasks.Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
Результат System.Threading.Tasks.Task

WriteByte() публичный Метод

public WriteByte ( byte value ) : void
value byte
Результат void