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