C# Class CmisSync.Lib.Streams.ProgressStream

Progress reporting stream.
Inheritance: NotifyPropertyChangedStream
Afficher le fichier Open project: OpenDataSpace/CmisSync Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat System

Read() public méthode

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. ///
Résultat int

Seek() public méthode

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

SetLength() public méthode

Sets the length.
public SetLength ( long value ) : void
value long /// Value. ///
Résultat void

Write() public méthode

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. ///
Résultat void