src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (8)
208int length = ClampEnd(span, start, trimElements);
253return memory.Slice(0, ClampEnd(memory.Span, 0, trimElements));
277int length = ClampEnd(span, start, trimElements);
322return memory.Slice(0, ClampEnd(memory.Span, 0, trimElements));
345int length = ClampEnd(span, start, trimElements);
390return span.Slice(0, ClampEnd(span, 0, trimElements));
413int length = ClampEnd(span, start, trimElements);
458return span.Slice(0, ClampEnd(span, 0, trimElements));