Removes characters from a character span by copying over them and returning a slice.
This is destructive and the original span should no longer be used.
- Namespace
- Statiq
.Common - Containing Type
- MemoryExtensions
Syntax
public static Memory<char> Remove(this in Memory<char> str, int startIndex, int length)
Parameters
Name | Type | Description |
---|---|---|
str | Memory |
|
startIndex | int | |
length | int |
Return Value
Type | Description |
---|---|
Memory |