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
Mostrar archivo Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method 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 method

public Close ( ) : void
return void

PausableStream() public method

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

Pause() public method

Pause this stream until resume is called.
public Pause ( ) : void
return void

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

Resume() public method

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