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

Write() public method

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 Write ( byte buffer, int offset, int count ) : void
buffer byte /// Given Buffer. ///
offset int /// Given Offset. ///
count int /// Count of bytes. ///
return void
        public override void Write(byte[] buffer, int offset, int count) {
            if (this.mode == CryptoStreamMode.Write) {
                this.hashAlg.TransformBlock(buffer, offset, count, buffer, offset);
            }

            base.Write(buffer, offset, count);
        }
    }