C# Class 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.
Inheritance: StreamWrapper
Afficher le fichier Open project: OpenDataSpace/CmisSync Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

PausableStream() public méthode

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

Pause() public méthode

Pause this stream until resume is called.
public Pause ( ) : void
Résultat void

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

Resume() public méthode

Resume this stream.
public Resume ( ) : void
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