54 instantiations of ValueStringBuilder
System.Private.CoreLib (54)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
104
var sb = new
ValueStringBuilder
(stackalloc char[260 /* PathInternal.MaxShortPath */]);
src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
15
ValueStringBuilder vsb =
new
(stackalloc char[256]);
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
406
using ValueStringBuilder sb = new
ValueStringBuilder
(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
348
var sb = new
ValueStringBuilder
(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
40
var sb = new
ValueStringBuilder
(stackalloc char[128]);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
93
var sb = new
ValueStringBuilder
(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
26
var result = new
ValueStringBuilder
(stackalloc char[128]);
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (1)
15
var builder = new
ValueStringBuilder
(stackalloc char[128]);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
264
new
ValueStringBuilder
(stackalloc char[128]) :
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
4382
var enquotedString = new
ValueStringBuilder
(stackalloc char[128]);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
508
var sb = new
ValueStringBuilder
(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
1332
var enquotedString = new
ValueStringBuilder
(64);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (1)
22
ValueStringBuilder sb = new
ValueStringBuilder
(stackalloc char[32]);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
672
ValueStringBuilder sb =
new
(Interop.DefaultPathBufferSize);
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\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
806
var vsb = new
ValueStringBuilder
(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (2)
505
new
ValueStringBuilder
(stackalloc char[256]) :
506
new
ValueStringBuilder
(estimatedLength);
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (4)
39
new
ValueStringBuilder
(stackalloc char[256]) :
68
new
ValueStringBuilder
(stackalloc char[256]) :
168
new
ValueStringBuilder
(stackalloc char[256]) :
193
new
ValueStringBuilder
(stackalloc char[256]) :
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
767
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\PasteArguments.Unix.cs (1)
17
var stringBuilder = new
ValueStringBuilder
(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
323
var vsb = new
ValueStringBuilder
(stackalloc char[StackallocThreshold]);
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (1)
49
var vsb = new
ValueStringBuilder
(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (1)
62
var result = new
ValueStringBuilder
(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
302
var sbName = new
ValueStringBuilder
(MethodNameBufferSize);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
450
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
439
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
439
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
507
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (9)
167
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
541
var sb = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
818
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
893
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
961
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
1016
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
1225
var result = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
1530
var builder = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
1619
var builder = new
ValueStringBuilder
(stackalloc char[StackallocCharBufferSizeLimit]);
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
123
var vsb = new
ValueStringBuilder
(stackalloc char[string.StackallocCharBufferSizeLimit]);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (2)
44
var serializedText = new
ValueStringBuilder
(stackalloc char[InitialCapacityForString]);
267
var token = new
ValueStringBuilder
(stackalloc char[InitialCapacityForString]);
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
115
ValueStringBuilder vsb =
new
(stackalloc char[256]);
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\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
112
var sb = new
ValueStringBuilder
(stackalloc char[64]);
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
103
var sbName = new
ValueStringBuilder
(MethodNameBufferSize);
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
138
var sbName = new
ValueStringBuilder
(MethodNameBufferSize);
src\System\Reflection\RuntimePropertyInfo.cs (1)
118
var sbName = new
ValueStringBuilder
(MethodBase.MethodNameBufferSize);
73 references to ValueStringBuilder
System.Private.CoreLib (73)
src\libraries\Common\src\System\IO\PathInternal.cs (2)
104
var
sb = new ValueStringBuilder(stackalloc char[260 /* PathInternal.MaxShortPath */]);
122
internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref
ValueStringBuilder
sb)
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\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
406
using
ValueStringBuilder
sb = new ValueStringBuilder(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
348
var
sb = new ValueStringBuilder(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
40
var
sb = new ValueStringBuilder(stackalloc char[128]);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (3)
62
private static void MinimalJsonserializer(string payload, ref
ValueStringBuilder
sb)
93
var
sb = new ValueStringBuilder(stackalloc char[256]);
149
private static void AppendByteArrayAsHexString(ref
ValueStringBuilder
builder, byte[] byteArray)
src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
26
var
result = new ValueStringBuilder(stackalloc char[128]);
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (1)
15
var
builder = new ValueStringBuilder(stackalloc char[128]);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
342
private static void NormalizeDayOfWeek(string input, ref
ValueStringBuilder
destination, ref int index)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
4382
var
enquotedString = new ValueStringBuilder(stackalloc char[128]);
4519
internal static bool TryParseQuoteString(ReadOnlySpan<char> format, int pos, ref
ValueStringBuilder
result, out int returnValue)
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
508
var
sb = new ValueStringBuilder(stackalloc char[256]);
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\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (1)
22
ValueStringBuilder
sb = new ValueStringBuilder(stackalloc char[32]);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
672
ValueStringBuilder
sb = new(Interop.DefaultPathBufferSize);
723
static void GetLinkTargetFullPath(ref
ValueStringBuilder
sb, ReadOnlySpan<char> linkTarget)
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\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
806
var
vsb = new ValueStringBuilder(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
504
var
vsb = (uint)estimatedLength <= 256 ?
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\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
767
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\PasteArguments.cs (1)
10
internal static void AppendArgument(ref
ValueStringBuilder
stringBuilder, string argument)
src\libraries\System.Private.CoreLib\src\System\PasteArguments.Unix.cs (1)
17
var
stringBuilder = new ValueStringBuilder(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (3)
323
var
vsb = new ValueStringBuilder(stackalloc char[StackallocThreshold]);
335
internal static void EscapeStringToBuilder(scoped ReadOnlySpan<char> stringToEscape, ref
ValueStringBuilder
vsb)
384
internal static void PercentEncodeByte(byte ch, ref
ValueStringBuilder
vsb)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (1)
49
var
vsb = new ValueStringBuilder(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (1)
62
var
result = new ValueStringBuilder(stackalloc char[256]);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
302
var
sbName = new ValueStringBuilder(MethodNameBufferSize);
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
91
internal static void AppendParameters(ref
ValueStringBuilder
sbParamList, Type[] parameterTypes, CallingConventions callingConvention)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
450
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
439
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
439
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
507
var
sb = new ValueStringBuilder(stackalloc char[64]);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (9)
167
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
541
var
sb = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
818
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
893
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
961
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
1016
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
1225
var
result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
1530
var
builder = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
1619
var
builder = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
123
var
vsb = new ValueStringBuilder(stackalloc char[string.StackallocCharBufferSizeLimit]);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (4)
44
var
serializedText = new ValueStringBuilder(stackalloc char[InitialCapacityForString]);
137
private static void SerializeSubstitute(string text, ref
ValueStringBuilder
serializedText)
152
private static void SerializeTransitionTime(TransitionTime time, ref
ValueStringBuilder
serializedText)
267
var
token = new ValueStringBuilder(stackalloc char[InitialCapacityForString]);
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\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\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (2)
112
var
sb = new ValueStringBuilder(stackalloc char[64]);
168
internal static void AppendRankOrModifierStringRepresentation(int rankOrModifier, ref
ValueStringBuilder
builder)
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
103
var
sbName = new ValueStringBuilder(MethodNameBufferSize);
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
138
var
sbName = new ValueStringBuilder(MethodNameBufferSize);
src\System\Reflection\RuntimePropertyInfo.cs (1)
118
var
sbName = new ValueStringBuilder(MethodBase.MethodNameBufferSize);