CmisSync.Lib.Streams.NonClosingHashStream.NonClosingHashStream C# (CSharp) Method

NonClosingHashStream() public method

Initializes a new instance of the CmisSync.Lib.Streams.NonClosingHashStream class.
public NonClosingHashStream ( Stream stream, HashAlgorithm hashAlg, CryptoStreamMode mode ) : System
stream Stream /// Wrapped stream. ///
hashAlg System.Security.Cryptography.HashAlgorithm /// 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 NonClosingHashStream(Stream stream, HashAlgorithm hashAlg, CryptoStreamMode mode) : base(stream) {
            if (hashAlg == null) {
                throw new ArgumentNullException("hashAlg");
            }

            this.hashAlg = hashAlg;
            this.mode = mode;
        }