brutal/Brutal.ImGui/Manual/Structs/ImGuiTextRange.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

22 lines
457 B
C#

using System.Runtime.InteropServices;
namespace Brutal.ImGuiApi;
public partial struct ImGuiTextFilter
{
[StructLayout(LayoutKind.Explicit, Size = 16)]
public unsafe struct ImGuiTextRange
{
[FieldOffset(0)]
public byte* B;
[FieldOffset(8)]
public byte* E;
public ImGuiTextRange(ReadOnlySpan<byte> range)
{
B = range.AsPointer();
E = B + range.Length;
}
}
}