18 references to HashSize
Microsoft.CodeAnalysis.Remote.Workspaces (3)
RemoteHostAssetReader.cs (3)
113
var readChecksumResult = await _pipeReader.ReadAtLeastAsync(Checksum.
HashSize
, cancellationToken).ConfigureAwait(false);
116
_pipeReader.AdvanceTo(readChecksumResult.Buffer.GetPosition(Checksum.
HashSize
));
131
Span<byte> checksumBytes = stackalloc byte[Checksum.
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)
120
const int maxStackAllocCount = 1024 / Checksum.
HashSize
;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
TestAnalyzerReferenceByLanguage.cs (1)
27
Array.Resize(ref checksumArray, Checksum.
HashSize
);
TestGeneratorReference.cs (1)
32
Array.Resize(ref checksumArray, Checksum.
HashSize
);