Method AsSpan
AsSpan()
Returns a ReadOnlySpan<T> view of the UTF-8 encoded string data, excluding the null terminator.
Declaration
public ReadOnlySpan<byte> AsSpan()
Returns
| Type | Description |
|---|---|
| ReadOnlySpan<byte> | A read-only span over the UTF-8 bytes. |