13 references to HashSize
Microsoft.CodeAnalysis.Workspaces (13)
Storage\SQLite\v2\Interop\SqlConnection.cs (2)
310if (length != Checksum.HashSize) 313Span<byte> bytes = stackalloc byte[Checksum.HashSize];
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (1)
240Span<byte> checksumBytes = stackalloc byte[Checksum.HashSize];
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)
90const int maxStackAllocCount = 1024 / Checksum.HashSize;