14 references to HashSize
IdeCoreBenchmarks (1)
CloudCachePersistentStorage.cs (1)
27
private static readonly ObjectPool<byte[]> s_byteArrayPool = new(() => new byte[Checksum.
HashSize
]);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
CloudCachePersistentStorage.cs (1)
27
private static readonly ObjectPool<byte[]> s_byteArrayPool = new(() => new byte[Checksum.
HashSize
]);
Microsoft.CodeAnalysis.Workspaces (10)
Storage\SQLite\v2\Interop\SqlConnection.cs (2)
310
if (length != Checksum.
HashSize
)
313
Span<byte> bytes = stackalloc byte[Checksum.
HashSize
];
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (1)
240
Span<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
58
if (checksum.Length <
HashSize
)
59
throw new ArgumentException($"checksum must be equal or bigger than the hash size: {
HashSize
}", nameof(checksum));
79
Span<byte> bytes = stackalloc byte[
HashSize
];
121
Contract.ThrowIfFalse(span.Length >=
HashSize
);
139
[StructLayout(LayoutKind.Explicit, Size =
HashSize
)]
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestGeneratorReference.cs (1)
32
Array.Resize(ref checksumArray, Checksum.
HashSize
);
Microsoft.VisualStudio.LanguageServices (1)
Storage\CloudCachePersistentStorage.cs (1)
27
private static readonly ObjectPool<byte[]> s_byteArrayPool = new(() => new byte[Checksum.
HashSize
]);