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

◆ TrimEnd< T >() [1/8]

static Memory< T > System.MemoryExtensions.TrimEnd< T > ( this Memory< T > memory,
ReadOnlySpan< T > trimElements )
inlinestatic
Type Constraints
T :IEquatable<T> 

Definition at line 1778 of file MemoryExtensions.cs.

1779 {
1780 if (trimElements.Length > 1)
1781 {
1782 return memory.Slice(0, ClampEnd(memory.Span, 0, trimElements));
1783 }
1784 if (trimElements.Length == 1)
1785 {
1786 return memory.TrimEnd(trimElements[0]);
1787 }
1788 return memory;
1789 }
static int ClampEnd(ReadOnlySpan< char > span, int start)

References System.MemoryExtensions.ClampEnd().