54 instantiations of ValueStringBuilder
System.Private.CoreLib (54)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (1)
100
var sb = new
ValueStringBuilder
(stackalloc char[260 /* PathInternal.MaxShortPath */]);
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
15
ValueStringBuilder vsb =
new
(stackalloc char[256]);
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
405
using ValueStringBuilder sb = new
ValueStringBuilder
(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
348
var sb = new
ValueStringBuilder
(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
40
var sb = new
ValueStringBuilder
(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
26
var result = new
ValueStringBuilder
(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (2)
265
new
ValueStringBuilder
(stackalloc char[128]) :
266
new
ValueStringBuilder
(input.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
4469
var enquotedString = new
ValueStringBuilder
(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
564
var sb = new
ValueStringBuilder
(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
1332
var enquotedString = new
ValueStringBuilder
(64);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (2)
22
ValueStringBuilder sb = new
ValueStringBuilder
(stackalloc char[32]);
422
ValueStringBuilder vsb =
new
(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
677
ValueStringBuilder sb =
new
(stackalloc char[Interop.DefaultPathBufferSize]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (3)
414
var builder = new
ValueStringBuilder
(stackalloc char[260]); // MaxShortPath on Windows
554
var builder = new
ValueStringBuilder
(stackalloc char[260]); // MaxShortPath on Windows
907
var sb = new
ValueStringBuilder
(stackalloc char[260]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
836
var vsb = new
ValueStringBuilder
(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (2)
534
new
ValueStringBuilder
(stackalloc char[256]) :
535
new
ValueStringBuilder
(estimatedLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (8)
39
new
ValueStringBuilder
(stackalloc char[256]) :
40
new
ValueStringBuilder
(valueSpan.Length + 200);
68
new
ValueStringBuilder
(stackalloc char[256]) :
69
new
ValueStringBuilder
(valueSpan.Length + 200);
168
new
ValueStringBuilder
(stackalloc char[256]) :
169
new
ValueStringBuilder
(valueSpan.Length);
193
new
ValueStringBuilder
(stackalloc char[256]) :
194
new
ValueStringBuilder
(valueSpan.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
756
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\PasteArguments.Unix.cs (1)
17
var stringBuilder = new
ValueStringBuilder
(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
312
var vsb = new
ValueStringBuilder
(stackalloc char[StackallocThreshold]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (1)
49
var vsb = new
ValueStringBuilder
(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (1)
62
var result = new
ValueStringBuilder
(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
450
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
439
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
439
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
507
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (9)
188
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
558
var sb = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
837
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
912
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
980
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
1035
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
1244
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
1572
var builder = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
1661
var builder = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
123
var vsb = new
ValueStringBuilder
(stackalloc char[string.StackallocCharBufferSizeLimit]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (2)
61
var serializedText = new
ValueStringBuilder
(stackalloc char[InitialCapacityForString]);
472
var token = new
ValueStringBuilder
(stackalloc char[InitialCapacityForString]);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
115
ValueStringBuilder vsb =
new
(stackalloc char[256]);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (3)
110
ValueStringBuilder builder =
new
(stackalloc char[256]);
179
ValueStringBuilder builder =
new
(stackalloc char[128]);
320
ValueStringBuilder builder =
new
(stackalloc char[64]);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
104
var sb = new
ValueStringBuilder
(stackalloc char[64]);
71 references to ValueStringBuilder
System.Private.CoreLib (71)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (2)
100
var
sb = new ValueStringBuilder(stackalloc char[260 /* PathInternal.MaxShortPath */]);
118
internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref
ValueStringBuilder
sb)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (3)
15
ValueStringBuilder
vsb = new(stackalloc char[256]);
20
public static void AppendDisplayName(ref
ValueStringBuilder
vsb, string name, Version? version, string? cultureName, byte[]? pkt, AssemblyNameFlags flags = 0, AssemblyContentType contentType = 0, byte[]? pk = null)
100
private static void AppendQuoted(this ref
ValueStringBuilder
vsb, string s)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
405
using
ValueStringBuilder
sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
348
var
sb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
40
var
sb = new ValueStringBuilder(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
26
var
result = new ValueStringBuilder(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (2)
264
var
destination = input.Length < 128 ?
343
private static void NormalizeDayOfWeek(string input, ref
ValueStringBuilder
destination, ref int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
4469
var
enquotedString = new ValueStringBuilder(stackalloc char[128]);
4604
internal static bool TryParseQuoteString(ReadOnlySpan<char> format, int pos, ref
ValueStringBuilder
result, out int returnValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
564
var
sb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (2)
1332
var
enquotedString = new ValueStringBuilder(64);
1448
private static bool ParseExactLiteral(ref TimeSpanTokenizer tokenizer, ref
ValueStringBuilder
enquotedString)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (2)
22
ValueStringBuilder
sb = new ValueStringBuilder(stackalloc char[32]);
422
ValueStringBuilder
vsb = new(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
677
ValueStringBuilder
sb = new(stackalloc char[Interop.DefaultPathBufferSize]);
728
static void GetLinkTargetFullPath(ref
ValueStringBuilder
sb, ReadOnlySpan<char> linkTarget)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (3)
414
var
builder = new ValueStringBuilder(stackalloc char[260]); // MaxShortPath on Windows
554
var
builder = new ValueStringBuilder(stackalloc char[260]); // MaxShortPath on Windows
907
var
sb = new ValueStringBuilder(stackalloc char[260]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
836
var
vsb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
533
var
vsb = (uint)estimatedLength <= 256 ?
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (6)
38
ValueStringBuilder
sb = valueSpan.Length < 80 ?
67
ValueStringBuilder
sb = valueSpan.Length < 80 ?
78
private static void HtmlEncode(ReadOnlySpan<char> input, ref
ValueStringBuilder
output)
167
ValueStringBuilder
sb = valueSpan.Length <= 256 ?
192
ValueStringBuilder
sb = valueSpan.Length <= 256 ?
203
private static void HtmlDecode(ReadOnlySpan<char> input, ref
ValueStringBuilder
output)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
756
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\PasteArguments.cs (1)
10
internal static void AppendArgument(ref
ValueStringBuilder
stringBuilder, string argument)
src\runtime\src\libraries\System.Private.CoreLib\src\System\PasteArguments.Unix.cs (1)
17
var
stringBuilder = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (3)
312
var
vsb = new ValueStringBuilder(stackalloc char[StackallocThreshold]);
324
internal static void EscapeStringToBuilder(scoped ReadOnlySpan<char> stringToEscape, ref
ValueStringBuilder
vsb)
373
internal static void PercentEncodeByte(byte ch, ref
ValueStringBuilder
vsb)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (1)
49
var
vsb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (1)
62
var
result = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
91
internal static void AppendParameters(ref
ValueStringBuilder
sbParamList, Type[] parameterTypes, CallingConventions callingConvention)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
450
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
439
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
439
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
507
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (9)
188
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
558
var
sb = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
837
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
912
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
980
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
1035
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
1244
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
1572
var
builder = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
1661
var
builder = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
123
var
vsb = new ValueStringBuilder(stackalloc char[string.StackallocCharBufferSizeLimit]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (8)
61
var
serializedText = new ValueStringBuilder(stackalloc char[InitialCapacityForString]);
271
private static void SerializeFullFidelityRules(AdjustmentRule[] rules, ref
ValueStringBuilder
serializedText)
294
private static void SerializeFullFidelityTransitionTime(TransitionTime transition, ref
ValueStringBuilder
serializedText)
322
private static void AppendInt32Value(int value, ref
ValueStringBuilder
serializedText)
328
private static void AppendInt64Value(long value, ref
ValueStringBuilder
serializedText)
342
private static void SerializeSubstitute(string text, ref
ValueStringBuilder
serializedText)
357
private static void SerializeTransitionTime(TransitionTime time, ref
ValueStringBuilder
serializedText)
472
var
token = new ValueStringBuilder(stackalloc char[InitialCapacityForString]);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (2)
115
ValueStringBuilder
vsb = new(stackalloc char[256]);
124
internal void AppendFullName(ref
ValueStringBuilder
vsb)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (5)
110
ValueStringBuilder
builder = new(stackalloc char[256]);
179
ValueStringBuilder
builder = new(stackalloc char[128]);
194
private void AppendFullName(ref
ValueStringBuilder
builder)
320
ValueStringBuilder
builder = new(stackalloc char[64]);
329
private void AppendName(ref
ValueStringBuilder
builder)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (2)
104
var
sb = new ValueStringBuilder(stackalloc char[64]);
160
internal static void AppendRankOrModifierStringRepresentation(int rankOrModifier, ref
ValueStringBuilder
builder)