4 references to s_uniqSuffix
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.GenerateRootId.netcoreapp.cs (4)
16
Debug.Assert(
s_uniqSuffix
.Length < 50); // Ensure stackalloc not too large
17
Span<char> result = stackalloc char[1 + 16 +
s_uniqSuffix
.Length]; // max length needed
21
s_uniqSuffix
.AsSpan().CopyTo(result.Slice(1 + charsWritten));
22
return new string(result.Slice(0, 1 + charsWritten +
s_uniqSuffix
.Length));