C# Class CmisSync.Lib.Streams.AbortableStream

Abortable stream wraps the given stream and add the possibility to abort the stream read and write by throwing an exception.
Inheritance: NotifyPropertyChangedStream
Afficher le fichier Open project: OpenDataSpace/CmisSync Class Usage Examples

Méthodes publiques

Méthode Description
Abort ( ) : void

Abort this instance.

AbortableStream ( Stream s ) : System

Initializes a new instance of the CmisSync.Lib.Streams.AbortableStream class.

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

Read the specified buffer, offset and count.

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

Write the specified buffer, offset and count.

Method Details

Abort() public méthode

Abort this instance.
public Abort ( ) : void
Résultat void

AbortableStream() public méthode

Initializes a new instance of the CmisSync.Lib.Streams.AbortableStream class.
public AbortableStream ( Stream s ) : System
s Stream Stream which should be abortable.
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

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