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

Progress reporting stream.
Наследование: NotifyPropertyChangedStream
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ProgressStream ( Stream stream ) : System

Initializes a new instance of the CmisSync.Lib.Streams.ProgressStream class. The given transmission event will be used to report the progress

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

Read the specified buffer, offset and count.

Seek ( long offset, SeekOrigin origin ) : long

Seek the specified offset and origin.

SetLength ( long value ) : void

Sets the length.

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

Write the specified buffer, offset and count.

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

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

Initializes a new instance of the CmisSync.Lib.Streams.ProgressStream class. The given transmission event will be used to report the progress
public ProgressStream ( Stream stream ) : System
stream Stream /// Stream which progress should be monitored. ///
Результат 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

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

Seek the specified offset and origin.
public Seek ( long offset, SeekOrigin origin ) : long
offset long /// Offset. ///
origin SeekOrigin /// Origin. ///
Результат long

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

Sets the length.
public SetLength ( long value ) : void
value long /// Value. ///
Результат 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