Because DearImGuiInterpolatedStringHandler.NullTerminateAndGetString returns a span not including the null terminator, "" results in a 0-length ReadOnlySpan<byte>. This causes the byte* from the fixed statement to be null which is not correct in our case.
DearImGuiInterpolatedStringHandler.NullTerminateAndGetString should return a span which includes the null terminator.
Because
DearImGuiInterpolatedStringHandler.NullTerminateAndGetString
returns a span not including the null terminator,""
results in a 0-lengthReadOnlySpan<byte>
. This causes thebyte*
from thefixed
statement to be null which is not correct in our case.DearImGuiInterpolatedStringHandler.NullTerminateAndGetString
should return a span which includes the null terminator.