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

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

공개 메소드들

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

비공개 메소드들

메소드 설명
Init ( ) : void

Init this instance.

메소드 상세

BandwidthLimitedStream() 공개 메소드

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

BandwidthLimitedStream() 공개 메소드

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

DisableLimits() 공개 메소드

Disables the limits.
public DisableLimits ( ) : void
리턴 void

DisableReadLimit() 공개 메소드

Disables the read limit.
public DisableReadLimit ( ) : void
리턴 void

DisableWriteLimit() 공개 메소드

Disables the write limit.
public DisableWriteLimit ( ) : void
리턴 void

Read() 공개 메소드

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