Allocates a
Memory<T>
and copies the characters of the string into it.
- Namespace
- Statiq
.Common - Containing Type
- StringExtensions
Syntax
public static Memory<char> ToMemory(this string str)
Parameters
Name | Type | Description |
---|---|---|
str | string | The string to copy to a Memory<T> . |
Return Value
Type | Description |
---|---|
Memory |
A new Memory<T> with the characters of the string. |