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

◆ ClampEnd< T >() [1/2]

static int System.MemoryExtensions.ClampEnd< T > ( ReadOnlySpan< T > span,
int start,
ReadOnlySpan< T > trimElements )
inlinestaticprivate
Type Constraints
T :IEquatable<T> 

Definition at line 1924 of file MemoryExtensions.cs.

1925 {
1926 int num = span.Length - 1;
1927 while (num >= start && trimElements.Contains(span[num]))
1928 {
1929 num--;
1930 }
1931 return num - start + 1;
1932 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)

References System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), and System.start.