BattleNet.AdvancedCheckRevision.ComputeFileHash C# (CSharp) Method

ComputeFileHash() protected static method

protected static ComputeFileHash ( IEnumerable formula, byte file, uint &values ) : void
formula IEnumerable
file byte
values uint
return void
        protected static void ComputeFileHash(IEnumerable<FormulaOp> formula, byte[] file, ref uint[] values)
        {
            int len = file.Length;
            for (int i = 0; i < len; i += 4)
            {
                values[3] = BitConverter.ToUInt32(file, i);
                foreach (FormulaOp op in formula)
                    values[op.Result] = Operations[op.Operation](values[op.Variable1], values[op.Variable2]);
            }
        }