コード例 #1
0
 public void PushAggregate(ScriptFile script, Function function, string decomp)
 {
     lock (pushLock)
     {
         if (function.NativeCount > 0 && Utils.CountLines(decomp) >= Program.AggregateMinLines)
         {
             string hash = Utils.SHA256(decomp);
             if (FunctionLoc.ContainsKey(hash))
             {
                 FunctionLoc[hash].AddFunction(function);
             }
             else
             {
                 FunctionLoc.Add(hash, new AggregateData(function, "Aggregate_" + FunctionLoc.Count, hash));
             }
         }
     }
 }
コード例 #2
0
 public AggregateData FetchAggregate(string decomp) => FunctionLoc[Utils.SHA256(decomp)];
コード例 #3
0
 public bool IsAggregate(string decomp) => FunctionLoc.ContainsKey(Utils.SHA256(decomp));