C# Класс CmisSync.Lib.Streams.AbortableStream

Abortable stream wraps the given stream and add the possibility to abort the stream read and write by throwing an exception.
Наследование: NotifyPropertyChangedStream
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Abort ( ) : void

Abort this instance.

AbortableStream ( Stream s ) : System

Initializes a new instance of the CmisSync.Lib.Streams.AbortableStream class.

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

Read the specified buffer, offset and count.

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

Write the specified buffer, offset and count.

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

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

Abort this instance.
public Abort ( ) : void
Результат void

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

Initializes a new instance of the CmisSync.Lib.Streams.AbortableStream class.
public AbortableStream ( Stream s ) : System
s Stream Stream which should be abortable.
Результат System

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

Read the specified buffer, offset and count.
public Read ( byte buffer, int offset, int count ) : int
buffer byte /// Buffer. ///
offset int /// Offset. ///
count int /// Count. ///
Результат int

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

Write the specified buffer, offset and count.
public Write ( byte buffer, int offset, int count ) : void
buffer byte /// Buffer. ///
offset int /// Offset. ///
count int /// Count. ///
Результат void