54 instantiations of ValueStringBuilder
System.Private.CoreLib (54)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (1)
100var sb = new ValueStringBuilder(stackalloc char[260 /* PathInternal.MaxShortPath */]);
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
15ValueStringBuilder vsb = new(stackalloc char[256]);
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
405using ValueStringBuilder sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
348var sb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
40var sb = new ValueStringBuilder(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
26var result = new ValueStringBuilder(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (2)
265new ValueStringBuilder(stackalloc char[128]) : 266new ValueStringBuilder(input.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
4469var enquotedString = new ValueStringBuilder(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
564var sb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
1332var enquotedString = new ValueStringBuilder(64);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (2)
22ValueStringBuilder sb = new ValueStringBuilder(stackalloc char[32]); 422ValueStringBuilder vsb = new(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
677ValueStringBuilder sb = new(stackalloc char[Interop.DefaultPathBufferSize]);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
836var vsb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (2)
534new ValueStringBuilder(stackalloc char[256]) : 535new ValueStringBuilder(estimatedLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (8)
39new ValueStringBuilder(stackalloc char[256]) : 40new ValueStringBuilder(valueSpan.Length + 200); 68new ValueStringBuilder(stackalloc char[256]) : 69new ValueStringBuilder(valueSpan.Length + 200); 168new ValueStringBuilder(stackalloc char[256]) : 169new ValueStringBuilder(valueSpan.Length); 193new ValueStringBuilder(stackalloc char[256]) : 194new ValueStringBuilder(valueSpan.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
756var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\PasteArguments.Unix.cs (1)
17var stringBuilder = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
312var vsb = new ValueStringBuilder(stackalloc char[StackallocThreshold]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (1)
49var vsb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (1)
62var result = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
450var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
439var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
439var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
507var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (9)
188var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 558var sb = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 837var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 912var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 980var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 1035var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 1244var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 1572var builder = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 1661var builder = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
123var vsb = new ValueStringBuilder(stackalloc char[string.StackallocCharBufferSizeLimit]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (2)
61var serializedText = new ValueStringBuilder(stackalloc char[InitialCapacityForString]); 472var token = new ValueStringBuilder(stackalloc char[InitialCapacityForString]);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
115ValueStringBuilder vsb = new(stackalloc char[256]);
src\runtime\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\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
104var 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)
100var sb = new ValueStringBuilder(stackalloc char[260 /* PathInternal.MaxShortPath */]); 118internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref ValueStringBuilder sb)
src\runtime\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\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
405using ValueStringBuilder sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
348var sb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
40var sb = new ValueStringBuilder(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
26var result = new ValueStringBuilder(stackalloc char[128]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (2)
264var destination = input.Length < 128 ? 343private static void NormalizeDayOfWeek(string input, ref ValueStringBuilder destination, ref int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
4469var enquotedString = new ValueStringBuilder(stackalloc char[128]); 4604internal 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)
564var sb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (2)
22ValueStringBuilder sb = new ValueStringBuilder(stackalloc char[32]); 422ValueStringBuilder vsb = new(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
677ValueStringBuilder sb = new(stackalloc char[Interop.DefaultPathBufferSize]); 728static void GetLinkTargetFullPath(ref ValueStringBuilder sb, ReadOnlySpan<char> linkTarget)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
836var vsb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
533var vsb = (uint)estimatedLength <= 256 ?
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
756var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\PasteArguments.cs (1)
10internal static void AppendArgument(ref ValueStringBuilder stringBuilder, string argument)
src\runtime\src\libraries\System.Private.CoreLib\src\System\PasteArguments.Unix.cs (1)
17var stringBuilder = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (3)
312var vsb = new ValueStringBuilder(stackalloc char[StackallocThreshold]); 324internal static void EscapeStringToBuilder(scoped ReadOnlySpan<char> stringToEscape, ref ValueStringBuilder vsb) 373internal static void PercentEncodeByte(byte ch, ref ValueStringBuilder vsb)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (1)
49var vsb = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (1)
62var result = new ValueStringBuilder(stackalloc char[256]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
91internal 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)
450var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
439var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
439var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
507var sb = new ValueStringBuilder(stackalloc char[64]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (9)
188var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 558var sb = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 837var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 912var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 980var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 1035var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 1244var result = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 1572var builder = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]); 1661var builder = new ValueStringBuilder(stackalloc char[StackallocCharBufferSizeLimit]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
123var vsb = new ValueStringBuilder(stackalloc char[string.StackallocCharBufferSizeLimit]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (8)
61var serializedText = new ValueStringBuilder(stackalloc char[InitialCapacityForString]); 271private static void SerializeFullFidelityRules(AdjustmentRule[] rules, ref ValueStringBuilder serializedText) 294private static void SerializeFullFidelityTransitionTime(TransitionTime transition, ref ValueStringBuilder serializedText) 322private static void AppendInt32Value(int value, ref ValueStringBuilder serializedText) 328private static void AppendInt64Value(long value, ref ValueStringBuilder serializedText) 342private static void SerializeSubstitute(string text, ref ValueStringBuilder serializedText) 357private static void SerializeTransitionTime(TransitionTime time, ref ValueStringBuilder serializedText) 472var token = new ValueStringBuilder(stackalloc char[InitialCapacityForString]);
src\runtime\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\runtime\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\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (2)
104var sb = new ValueStringBuilder(stackalloc char[64]); 160internal static void AppendRankOrModifierStringRepresentation(int rankOrModifier, ref ValueStringBuilder builder)