Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
TrimEnd< T >()
[3/8]
static
ReadOnlyMemory
<
T
>
System.MemoryExtensions.TrimEnd
<
T
>
(
this
ReadOnlyMemory
<
T
>
memory
,
ReadOnlySpan
<
T
>
trimElements
)
inline
static
Type Constraints
T
:
IEquatable<T>
Definition at line
1820
of file
MemoryExtensions.cs
.
1820
:
IEquatable<T>
1821
{
1822
if
(
trimElements
.Length > 1)
1823
{
1824
return
memory
.Slice(0,
ClampEnd
(
memory
.Span, 0,
trimElements
));
1825
}
1826
if
(
trimElements
.Length == 1)
1827
{
1828
return
memory
.TrimEnd(
trimElements
[0]);
1829
}
1830
return
memory
;
1831
}
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