Method | 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.
|
Method | Description | |
---|---|---|
Init ( ) : void |
Init this instance.
|
public BandwidthLimitedStream ( Stream s ) : System | ||
s | Stream | /// The stream instance, which should be limited. /// |
return | System |
public BandwidthLimitedStream ( Stream s, long limit ) : System | ||
s | Stream | /// The stream instance, which should be limited. /// |
limit | long | /// Up and download limit. /// |
return | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | /// Target buffer. /// |
offset | int | /// Offset. /// |
count | int | /// Count of bytes. /// |
return | int |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | /// Buffer. /// |
offset | int | /// Offset. /// |
count | int | /// Count. /// |
return | void |