50 references to StackallocCharThreshold
System.Text.Json (50)
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (2)
38
Span<char> destination = initialBufferLength <= JsonConstants.
StackallocCharThreshold
39
? stackalloc char[JsonConstants.
StackallocCharThreshold
]
System\Text\Json\JsonHelpers.cs (2)
206
Span<char> charBuffer = utf8Key.Length <= JsonConstants.
StackallocCharThreshold
?
207
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Nodes\JsonNode.cs (1)
145
var path = new ValueStringBuilder(stackalloc char[JsonConstants.
StackallocCharThreshold
]);
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (3)
244
Span<char> charBuffer = bufferLength <= JsonConstants.
StackallocCharThreshold
245
? stackalloc char[JsonConstants.
StackallocCharThreshold
]
405
using ValueStringBuilder sb = new(stackalloc char[JsonConstants.
StackallocCharThreshold
]);
System\Text\Json\Writer\Utf8JsonWriter.cs (2)
970
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
971
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (2)
143
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
144
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (2)
150
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
151
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (2)
149
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
150
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (2)
149
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
150
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (2)
153
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
154
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (2)
153
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
154
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs (2)
123
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
124
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (2)
149
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
150
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (2)
268
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
269
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (2)
222
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
223
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (14)
121
if (length > JsonConstants.
StackallocCharThreshold
)
128
escapedPropertyName = stackalloc char[JsonConstants.
StackallocCharThreshold
];
926
Span<char> escapedValue = length <= JsonConstants.
StackallocCharThreshold
?
927
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
949
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
950
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
1075
if (length > JsonConstants.
StackallocCharThreshold
)
1082
escapedValue = stackalloc char[JsonConstants.
StackallocCharThreshold
];
1095
if (length > JsonConstants.
StackallocCharThreshold
)
1102
escapedPropertyName = stackalloc char[JsonConstants.
StackallocCharThreshold
];
1215
if (length > JsonConstants.
StackallocCharThreshold
)
1222
escapedPropertyName = stackalloc char[JsonConstants.
StackallocCharThreshold
];
1255
if (length > JsonConstants.
StackallocCharThreshold
)
1262
escapedValue = stackalloc char[JsonConstants.
StackallocCharThreshold
];
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (2)
231
Span<char> escapedPropertyName = length <= JsonConstants.
StackallocCharThreshold
?
232
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (2)
192
Span<char> escapedValue = length <= JsonConstants.
StackallocCharThreshold
?
193
stackalloc char[JsonConstants.
StackallocCharThreshold
] :
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (2)
142
Span<char> escapedValue = length <= JsonConstants.
StackallocCharThreshold
?
143
stackalloc char[JsonConstants.
StackallocCharThreshold
] :