C# Class CmisSync.Lib.Streams.ProgressStream

Progress reporting stream.
Inheritance: NotifyPropertyChangedStream
ファイルを表示 Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
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.

Method Details

ProgressStream() public method

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. ///
return System

Read() public method

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. ///
return int

Seek() public method

Seek the specified offset and origin.
public Seek ( long offset, SeekOrigin origin ) : long
offset long /// Offset. ///
origin SeekOrigin /// Origin. ///
return long

SetLength() public method

Sets the length.
public SetLength ( long value ) : void
value long /// Value. ///
return void

Write() public method

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. ///
return void