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
)
inline
static
Type Constraints
T
:
IEquatable<T>
Definition at line
1778
of file
MemoryExtensions.cs
.
1778
:
IEquatable<T>
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
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.MemoryExtensions.ClampEnd
static int ClampEnd(ReadOnlySpan< char > span, int start)
Definition
MemoryExtensions.cs:2117
References
System.MemoryExtensions.ClampEnd()
.
System
MemoryExtensions
Generated by
1.10.0