2 instantiations of PathSegment
Microsoft.AspNetCore.Routing (2)
Matching\FastPathTokenizer.cs (2)
29
segments[count++] = new
PathSegment
(start, end);
38
segments[count++] = new
PathSegment
(start, length);
23 references to PathSegment
Microsoft.AspNetCore.Routing (23)
Matching\DfaMatcher.cs (9)
45
Span<
PathSegment
> buffer = stackalloc
PathSegment
[_maxSegmentCount];
212
ReadOnlySpan<
PathSegment
> segments)
238
ReadOnlySpan<
PathSegment
> segments)
246
var
segment = segments[segmentIndex];
261
ReadOnlySpan<
PathSegment
> segments)
268
var
segment = segments[segmentIndex];
279
ReadOnlySpan<
PathSegment
> segments,
285
var
segment = segments[segmentIndex];
Matching\DictionaryJumpTable.cs (1)
29
public override int GetDestination(string path,
PathSegment
segment)
Matching\FastPathTokenizer.cs (1)
15
public static int Tokenize(string path, Span<
PathSegment
> segments)
Matching\ILEmitTrieJumpTable.cs (4)
32
internal Func<string,
PathSegment
, int> _getDestination;
50
public override int GetDestination(string path,
PathSegment
segment)
57
private int FallbackGetDestination(string path,
PathSegment
segment)
81
_getDestination = (string path,
PathSegment
segment) =>
Matching\JumpTable.cs (1)
11
public abstract int GetDestination(string path,
PathSegment
segment);
Matching\LinearSearchJumpTable.cs (1)
25
public override int GetDestination(string path,
PathSegment
segment)
Matching\PathSegment.cs (3)
6
internal readonly struct PathSegment : IEquatable<
PathSegment
>
19
return obj is
PathSegment
segment ? Equals(segment) : false;
22
public bool Equals(
PathSegment
other)
Matching\SingleEntryAsciiJumpTable.cs (1)
30
public override int GetDestination(string path,
PathSegment
segment)
Matching\SingleEntryJumpTable.cs (1)
25
public override int GetDestination(string path,
PathSegment
segment)
Matching\ZeroEntryJumpTable.cs (1)
17
public override int GetDestination(string path,
PathSegment
segment)