C# Class CmisSync.Lib.Streams.BandwidthLimitedStream

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

Méthodes publiques

Méthode Description
BandwidthLimitedStream ( Stream s ) : System

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

BandwidthLimitedStream ( Stream s, long limit ) : System

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

DisableLimits ( ) : void

Disables the limits.

DisableReadLimit ( ) : void

Disables the read limit.

DisableWriteLimit ( ) : void

Disables the write limit.

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.

Private Methods

Méthode Description
Init ( ) : void

Init this instance.

Method Details

BandwidthLimitedStream() public méthode

Initializes a new instance of the CmisSync.Lib.Streams.BandwidthLimitedStream class.
public BandwidthLimitedStream ( Stream s ) : System
s Stream /// The stream instance, which should be limited. ///
Résultat System

BandwidthLimitedStream() public méthode

Initializes a new instance of the CmisSync.Lib.Streams.BandwidthLimitedStream class.
public BandwidthLimitedStream ( Stream s, long limit ) : System
s Stream /// The stream instance, which should be limited. ///
limit long /// Up and download limit. ///
Résultat System

DisableLimits() public méthode

Disables the limits.
public DisableLimits ( ) : void
Résultat void

DisableReadLimit() public méthode

Disables the read limit.
public DisableReadLimit ( ) : void
Résultat void

DisableWriteLimit() public méthode

Disables the write limit.
public DisableWriteLimit ( ) : 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 /// Target buffer. ///
offset int /// Offset. ///
count int /// Count of bytes. ///
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