MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ClearFreeMemory

Method ClearFreeMemory

KBotExt/imgui/imgui_draw.cpp:1670–1682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1668//-----------------------------------------------------------------------------
1669
1670void ImDrawListSplitter::ClearFreeMemory()
1671{
1672 for (int i = 0; i < _Channels.Size; i++)
1673 {
1674 if (i == _Current)
1675 memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again
1676 _Channels[i]._CmdBuffer.clear();
1677 _Channels[i]._IdxBuffer.clear();
1678 }
1679 _Current = 0;
1680 _Count = 1;
1681 _Channels.clear();
1682}
1683
1684void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count)
1685{

Callers 3

ShutdownMethod · 0.80
_ClearFreeMemoryMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected