Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LocateLastFoundChar() [2/2]

static int System.SpanHelpers.LocateLastFoundChar ( Vector< ushort > match)
inlinestaticprivate

Definition at line 2693 of file SpanHelpers.cs.

2694 {
2695 Vector<ulong> vector = Vector.AsVectorUInt64(match);
2696 ulong num = 0uL;
2697 int num2 = Vector<ulong>.Count - 1;
2698 for (int i = 0; i < Vector<ulong>.Count; i++)
2699 {
2700 num = vector[num2];
2701 if (num != 0L)
2702 {
2703 break;
2704 }
2705 num2--;
2706 }
2707 return num2 * 4 + LocateLastFoundChar(num);
2708 }
static int LocateLastFoundChar(Vector< ushort > match)

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.L, System.SpanHelpers.LocateLastFoundChar(), and System.match.

Referenced by System.SpanHelpers.LastIndexOf(), and System.SpanHelpers.LocateLastFoundChar().