MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ~ImPool

Method ~ImPool

KBotExt/imgui/imgui_internal.h:657–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656 ImPool() { FreeIdx = AliveCount = 0; }
657 ~ImPool() { Clear(); }
658 T* GetByKey(ImGuiID key) { int idx = Map.GetInt(key, -1); return (idx != -1) ? &Buf[idx] : NULL; }
659 T* GetByIndex(ImPoolIdx n) { return &Buf[n]; }
660 ImPoolIdx GetIndex(const T* p) const { IM_ASSERT(p >= Buf.Data && p < Buf.Data + Buf.Size); return (ImPoolIdx)(p - Buf.Data); }

Callers

nothing calls this directly

Calls 1

ClearFunction · 0.85

Tested by

no test coverage detected