Property ReadOnlySpan
ReadOnlySpan
Gets a readonly span for the data in this string
public ReadOnlySpan<byte> ReadOnlySpan { get; }
Property Value
- ReadOnlySpan<byte>
Span of the native characters in this string (as byte)
Remarks
This does NOT make a managed copy of the underlying string memory. Instead the returned span refers directly to the unmanaged memory of the string.