Method | Description | |
---|---|---|
NonClosingHashStream ( Stream stream, |
Initializes a new instance of the CmisSync.Lib.Streams.NonClosingHashStream class.
|
|
Read ( byte buffer, int offset, int count ) : int |
Passes the call to exact the same method of the given stream. If mode is set to Read, the given HashAlgorithm is transformed by passing the output of the read operation.
|
|
Write ( byte buffer, int offset, int count ) : void |
Passes the call to exact the same method of the given stream. If mode is set to Write, the given HashAlgorithm is transformed by passing the input of the write operation.
|
public NonClosingHashStream ( Stream stream, |
||
stream | Stream | /// Wrapped stream. /// |
hashAlg | /// Hash algorithm, which should be used for hash calculations. /// | |
mode | CryptoStreamMode | /// Setting the mode, when hashing should be executed. On Read will transform the hash while reading, or Write mode for transforming while writing. /// |
return | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | /// Buffer. /// |
offset | int | /// Offset. /// |
count | int | /// Count. /// |
return | int |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | /// Given Buffer. /// |
offset | int | /// Given Offset. /// |
count | int | /// Count of bytes. /// |
return | void |