/// <summary>
 /// Returns a string from the given span, terminating the string at null if present.
 /// </summary>
 internal static unsafe string GetStringFromFixedBuffer(this ReadOnlySpan <char> span)
 {
     fixed(char *c = &MemoryMarshal.GetReference(span))
     {
         return(new string(c, 0, span.GetFixedBufferStringLength()));
     }
 }