Метод | Описание | |
---|---|---|
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.
|
public BandwidthLimitedStream ( Stream s ) : System | ||
s | Stream | /// The stream instance, which should be limited. /// |
Результат | System |
public BandwidthLimitedStream ( Stream s, long limit ) : System | ||
s | Stream | /// The stream instance, which should be limited. /// |
limit | long | /// Up and download limit. /// |
Результат | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | /// Target buffer. /// |
offset | int | /// Offset. /// |
count | int | /// Count of bytes. /// |
Результат | int |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | /// Buffer. /// |
offset | int | /// Offset. /// |
count | int | /// Count. /// |
Результат | void |