mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
22 lines
457 B
C#
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;
|
|
}
|
|
}
|
|
}
|