4 references to TryHash
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
92
if (!
TryHash
(source, destination, out int bytesWritten, seed))
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
XxHash128Tests.cs (3)
53
Assert.False(XxHash128.
TryHash
(input, destination.AsSpan(0, destination.Length - 1), out int bytesWritten, test.Seed));
60
Assert.True(XxHash128.
TryHash
(input, destination, out bytesWritten));
65
Assert.True(XxHash128.
TryHash
(input, destination, out bytesWritten, test.Seed));