11 references to StringHashingAlgorithm
Microsoft.Build (10)
Evaluation\Expander\WellKnownFunctions.cs (2)
650
else if (ParseArgs.TryGetArgs(args, out string? arg1, out string? arg2) && Enum.TryParse<IntrinsicFunctions.
StringHashingAlgorithm
>(arg2, true, out
var
hashAlgorithm) && arg1 != null && arg2 != null)
Evaluation\IntrinsicFunctions.cs (8)
453
=> StableStringHash(toHash,
StringHashingAlgorithm
.Legacy);
455
internal static object StableStringHash(string toHash,
StringHashingAlgorithm
algo) =>
458
StringHashingAlgorithm
.Legacy => CommunicationsUtilities.GetHashCode(toHash),
459
StringHashingAlgorithm
.Fnv1a32bit => FowlerNollVo1aHash.ComputeHash32(toHash),
460
StringHashingAlgorithm
.Fnv1a32bitFast => FowlerNollVo1aHash.ComputeHash32Fast(toHash),
461
StringHashingAlgorithm
.Fnv1a64bit => FowlerNollVo1aHash.ComputeHash64(toHash),
462
StringHashingAlgorithm
.Fnv1a64bitFast => FowlerNollVo1aHash.ComputeHash64Fast(toHash),
463
StringHashingAlgorithm
.Sha256 => CalculateSha256(toHash),
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Expander_Tests.cs (1)
3950
=> Enum.GetNames(typeof(IntrinsicFunctions.
StringHashingAlgorithm
))