C# 클래스 CmisSync.Lib.Streams.BandwidthNotifyingStream

상속: NotifyPropertyChangedStream
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
CalcBitsPerSecond ( System.DateTime start, System.DateTime end, long bytes ) : long

Calculates the bits per second.

CalculateBandwidth ( int transmittedBytes ) : void

Calculates the bandwidth.

메소드 상세

BandwidthNotifyingStream() 공개 메소드

public BandwidthNotifyingStream ( Stream s ) : System
s Stream
리턴 System

Close() 공개 메소드

Close this instance and calculates the bandwidth of the last second.
public Close ( ) : void
리턴 void

Read() 공개 메소드

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. ///
리턴 int

Write() 공개 메소드

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. ///
리턴 void