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