10 references to HashSize
Microsoft.CodeAnalysis.Workspaces (10)
Workspace\Solution\Checksum.cs (9)
21[DataContract, StructLayout(LayoutKind.Explicit, Size = HashSize)] 39/// Create Checksum from given byte array. if byte array is bigger than <see cref="HashSize"/>, it will be 46/// Create Checksum from given byte array. if byte array is bigger than <see cref="HashSize"/>, it will be 54if (checksum.Length < HashSize) 55throw new ArgumentException($"checksum must be equal or bigger than the hash size: {HashSize}", nameof(checksum)); 64Span<byte> bytes = stackalloc byte[HashSize]; 88Contract.ThrowIfTrue(span.Length < HashSize); 94var span = pipeWriter.GetSpan(HashSize); 96pipeWriter.Advance(HashSize);
Workspace\Solution\Checksum_Factory.cs (1)
123const int maxStackAllocCount = 1024 / Checksum.HashSize;