public ulong RegisterVanillaPath(string path) { var hashint = FNV1A64HashAlgorithm.HashString(path); if (!HashdumpDict.ContainsKey(path)) { HashdumpDict.Add(path, hashint); } return(hashint); }
public void WriteVanilla() { using (var writer = new StreamWriter(pathashespath)) using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture)) { csv.WriteRecords(HashdumpDict.Select(_ => new HashDump { Path = _.Key, HashInt = _.Value })); } }