C# Class CmisSync.Lib.Streams.BandwidthNotifyingStream

Inheritance: NotifyPropertyChangedStream
Datei anzeigen Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
BandwidthNotifyingStream ( Stream s ) : System
Close ( ) : void

Close this instance and calculates the bandwidth of the last second.

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

Method Description
CalcBitsPerSecond ( System.DateTime start, System.DateTime end, long bytes ) : long

Calculates the bits per second.

CalculateBandwidth ( int transmittedBytes ) : void

Calculates the bandwidth.

Method Details

BandwidthNotifyingStream() public method

public BandwidthNotifyingStream ( Stream s ) : System
s Stream
return System

Close() public method

Close this instance and calculates the bandwidth of the last second.
public Close ( ) : 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

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