C# Class CmisSync.Lib.Streams.TransmissionStream

Transmission stream should only be used by unit tests and indirectly by calling Transmission.CreateStream.
Inheritance: Stream
Afficher le fichier Open project: OpenDataSpace/CmisSync Class Usage Examples

Méthodes publiques

Méthode Description
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult

Begins the read on the wrapped instance.

Flush ( ) : void

Flush the wrapped instance.

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

Read the specified buffer, offset and count.

Seek ( long offset, SeekOrigin origin ) : long

Seeks on the wrapped instance with the specified offset and origin.

SetLength ( long value ) : void

Sets the length of the wrapped instance.

TransmissionStream ( Stream wrappedStream, Transmission transmission ) : System

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

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

Write the specified buffer, offset and count.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

BeginRead() public méthode

Begins the read on the wrapped instance.
public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte /// Buffer passed to the wrapped instance. ///
offset int /// Offset passed to the wrapped instance. ///
count int /// Count passed to the wrapped instance. ///
callback AsyncCallback /// Callback passed to the wrapped instance. ///
state object /// State passed to the wrapped instance. ///
Résultat IAsyncResult

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

Flush the wrapped instance.
public Flush ( ) : 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 passed to the wrapped instance. ///
offset int /// Offset passed to the wrapped instance. ///
count int /// Count passed to the wrapped instance. ///
Résultat int

Seek() public méthode

Seeks on the wrapped instance with the specified offset and origin.
public Seek ( long offset, SeekOrigin origin ) : long
offset long /// Offset passed to the wrapped instance. ///
origin SeekOrigin /// Origin passed to the wrapped instance. ///
Résultat long

SetLength() public méthode

Sets the length of the wrapped instance.
public SetLength ( long value ) : void
value long /// Value passed to the wrapped instance. ///
Résultat void

TransmissionStream() public méthode

Initializes a new instance of the CmisSync.Lib.Streams.TransmissionStream class.
public TransmissionStream ( Stream wrappedStream, Transmission transmission ) : System
wrappedStream Stream Wrapped stream.
transmission CmisSync.Lib.FileTransmission.Transmission Transmission object to be notified about changes and listened to events as well.
Résultat System

Write() public méthode

Write the specified buffer, offset and count.
public Write ( byte buffer, int offset, int count ) : void
buffer byte /// Buffer passed to the wrapped instance. ///
offset int /// Offset passed to the wrapped instance. ///
count int /// Count passed to the wrapped instance. ///
Résultat void