8 references to Hash
Microsoft.CodeAnalysis.Workspaces (4)
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
80Hash(source, result, seed);
Workspace\Solution\Checksum_Factory.cs (3)
64XxHash128.Hash(MemoryMarshal.AsBytes(value.AsSpan()), destination); 113XxHash128.Hash(MemoryMarshal.AsBytes(hashes), destination); 166XxHash128.Hash(source, destination);
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
XxHash128Tests.cs (4)
25Assert.Throws<ArgumentException>("destination", () => XxHash128.Hash(new byte[] { 1, 2, 3 }, new byte[7])); 73Assert.Equal(16, XxHash128.Hash(input, destination)); 77Assert.Equal(16, XxHash128.Hash(input, destination, test.Seed)); 122Assert.Equal(16, XxHash128.Hash(asciiBytes.AsSpan(0, processed), destination2, test.Seed));