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

Pausable stream takes the given stream and causes the reading or writing thread to pause if pause is called until resume is called.
Наследование: StreamWrapper
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Close ( ) : void
PausableStream ( Stream s ) : System

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

Pause ( ) : void

Pause this stream until resume is called.

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

Read the specified buffer, offset and count.

Resume ( ) : void

Resume this stream.

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

Write the specified buffer, offset and count.

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

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

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

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

Initializes a new instance of the CmisSync.Lib.Streams.PausableStream class.
public PausableStream ( Stream s ) : System
s Stream Stream which should be wrapped and extended by the possibility to be paused on read or write by another thread.
Результат System

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

Pause this stream until resume is called.
public Pause ( ) : void
Результат void

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

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

Resume this stream.
public Resume ( ) : void
Результат void

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