mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
22
Brutal.ImGui/Manual/Structs/ImGuiTextRange.cs
Normal file
22
Brutal.ImGui/Manual/Structs/ImGuiTextRange.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue