You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Gets the SeString as a new byte array.</summary>
98
-
/// <returns>A new byte array.</returns>
99
-
publicbyte[]ToArray()
97
+
/// <summary>Gets the view of SeString being built.</summary>
98
+
/// <returns>View of the SeString being built.</returns>
99
+
/// <remarks>
100
+
/// <p>Returned view is invalidated upon any mutation to this builder, including <see cref="Clear"/> and <see cref="Append(string)"/>. If
101
+
/// <see cref="SharedPool"/> is being used, then returning to the pool also will invalidate the returned view.</p>
102
+
/// <p>After the last element (right after the end of the returned memory/span), <c>NUL</c> is present. You can pin the returned value and use the pointer
103
+
/// to the first element as a pointer to null-terminated string.</p>
104
+
/// </remarks>
105
+
publicReadOnlyMemory<byte>GetViewAsMemory()
100
106
{
101
107
if(_mss.Count!=1)
102
108
thrownewInvalidOperationException("The string is incomplete, due to non-empty stack.");
0 commit comments