14 references to HashSize
IdeCoreBenchmarks (1)
CloudCachePersistentStorage.cs (1)
27private static readonly ObjectPool<byte[]> s_byteArrayPool = new(() => new byte[Checksum.HashSize]);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
CloudCachePersistentStorage.cs (1)
27private static readonly ObjectPool<byte[]> s_byteArrayPool = new(() => new byte[Checksum.HashSize]);
Microsoft.CodeAnalysis.Workspaces (10)
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 (7)
40/// Create Checksum from given byte array. if byte array is bigger than <see cref="HashSize"/>, it will be 47/// Create Checksum from given byte array. if byte array is bigger than <see cref="HashSize"/>, it will be 58if (checksum.Length < HashSize) 59throw new ArgumentException($"checksum must be equal or bigger than the hash size: {HashSize}", nameof(checksum)); 79Span<byte> bytes = stackalloc byte[HashSize]; 121Contract.ThrowIfFalse(span.Length >= HashSize); 139[StructLayout(LayoutKind.Explicit, Size = HashSize)]
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestGeneratorReference.cs (1)
32Array.Resize(ref checksumArray, Checksum.HashSize);
Microsoft.VisualStudio.LanguageServices (1)
Storage\CloudCachePersistentStorage.cs (1)
27private static readonly ObjectPool<byte[]> s_byteArrayPool = new(() => new byte[Checksum.HashSize]);