This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
/// <summary> | |
/// Stack-based String | |
/// </summary> | |
[InterpolatedStringHandler] | |
[SkipLocalsInit] | |
public unsafe struct StackString | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Buffers; | |
using System.Buffers.Text; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
/// <summary> | |
/// Stack-based UTF8 string for ImGui. | |
/// I frequently want to do short string manipulation (ex. $"{Icon} Play!") and this | |
/// avoids allocating on the new strings every single frame. |
OlderNewer