13 references to HashSize
Microsoft.CodeAnalysis.Workspaces (13)
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 (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
54
if (checksum.Length <
HashSize
)
55
throw new ArgumentException($"checksum must be equal or bigger than the hash size: {
HashSize
}", nameof(checksum));
64
Span<byte> bytes = stackalloc byte[
HashSize
];
88
Contract.ThrowIfTrue(span.Length <
HashSize
);
94
var span = pipeWriter.GetSpan(
HashSize
);
96
pipeWriter.Advance(
HashSize
);
Workspace\Solution\Checksum_Factory.cs (1)
105
const int maxStackAllocCount = 1024 / Checksum.
HashSize
;