8 references to StackAllocThreshold
Microsoft.AspNetCore.Http.Abstractions (4)
PathString.cs (4)
187
Span<char> pathBuffer = uriComponent.Length <=
StackAllocThreshold
? stackalloc char[
StackAllocThreshold
] : new char[uriComponent.Length];
203
Span<char> pathBuffer = uriComponent.Length <
StackAllocThreshold
? stackalloc char[
StackAllocThreshold
] : new char[uriComponent.Length + 1];
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
PathStringTests.cs (4)
388
var testString = new string('a', PathString.
StackAllocThreshold
+ offset - path.Length);
390
Assert.Equal(PathString.
StackAllocThreshold
+ offset, sut.Value!.Length);
400
var testString = new string('a', PathString.
StackAllocThreshold
+ offset);
402
Assert.Equal(PathString.
StackAllocThreshold
+ offset + 1, sut.Value!.Length);