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

◆ TrimStart< T >() [3/8]

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

Definition at line 1807 of file MemoryExtensions.cs.

1808 {
1809 if (trimElements.Length > 1)
1810 {
1811 return memory.Slice(ClampStart(memory.Span, trimElements));
1812 }
1813 if (trimElements.Length == 1)
1814 {
1815 return memory.TrimStart(trimElements[0]);
1816 }
1817 return memory;
1818 }
static int ClampStart(ReadOnlySpan< char > span)

References System.MemoryExtensions.ClampStart().