//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// C++:
/// imgui_internal.h:2256
///
struct ImGuiDebugAllocInfo
///
///
[StructLayout(LayoutKind.Explicit, Size = 60)]
public partial struct ImGuiDebugAllocInfo
{
///
///
/// Number of call to MemAlloc().
///
///
/// C++:
/// imgui_internal.h:2258
///
int TotalAllocCount
///
///
[FieldOffset(0)]
public int TotalAllocCount;
///
///
/// C++:
/// imgui_internal.h:2259
///
int TotalFreeCount
///
///
[FieldOffset(4)]
public int TotalFreeCount;
///
///
/// Current index in buffer
///
///
/// C++:
/// imgui_internal.h:2260
///
ImS16 LastEntriesIdx
///
///
[FieldOffset(8)]
public short LastEntriesIdx;
///
///
/// Track last 6 frames that had allocations
///
///
/// C++:
/// imgui_internal.h:2261
///
ImGuiDebugAllocEntry LastEntriesBuf[6]
///
///
[FieldOffset(12)]
public ImGuiDebugAllocEntry_6 LastEntriesBuf;
}
///
///
/// C++:
/// imgui_internal.h:2256
///
struct ImGuiDebugAllocInfo
///
///
public unsafe partial struct ImGuiDebugAllocInfoPtr(ImGuiDebugAllocInfo* ptr) : INullable
{
private ImGuiDebugAllocInfo* _ptr = ptr;
public ImGuiDebugAllocInfo* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiDebugAllocInfoPtr(ImGuiDebugAllocInfo* ptr) => new(ptr);
public static implicit operator ImGuiDebugAllocInfo*(ImGuiDebugAllocInfoPtr wrapper) => wrapper.Ptr;
///
///
/// Number of call to MemAlloc().
///
///
/// C++:
/// imgui_internal.h:2258
///
int TotalAllocCount
///
///
public ref int TotalAllocCount => ref Unsafe.AsRef(&_ptr->TotalAllocCount);
///
///
/// C++:
/// imgui_internal.h:2259
///
int TotalFreeCount
///
///
public ref int TotalFreeCount => ref Unsafe.AsRef(&_ptr->TotalFreeCount);
///
///
/// Current index in buffer
///
///
/// C++:
/// imgui_internal.h:2260
///
ImS16 LastEntriesIdx
///
///
public ref short LastEntriesIdx => ref Unsafe.AsRef(&_ptr->LastEntriesIdx);
///
///
/// Track last 6 frames that had allocations
///
///
/// C++:
/// imgui_internal.h:2261
///
ImGuiDebugAllocEntry LastEntriesBuf[6]
///
///
public ref ImGuiDebugAllocEntry_6 LastEntriesBuf =>
ref Unsafe.AsRef(&_ptr->LastEntriesBuf);
}
}