MCPcopy Create free account
hub / github.com/SatDump/SatDump / ClearFreeMemory

Method ClearFreeMemory

src-core/imgui/imgui_draw.cpp:1710–1722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1708//-----------------------------------------------------------------------------
1709
1710void ImDrawListSplitter::ClearFreeMemory()
1711{
1712 for (int i = 0; i < _Channels.Size; i++)
1713 {
1714 if (i == _Current)
1715 memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again
1716 _Channels[i]._CmdBuffer.clear();
1717 _Channels[i]._IdxBuffer.clear();
1718 }
1719 _Current = 0;
1720 _Count = 1;
1721 _Channels.clear();
1722}
1723
1724void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count)
1725{

Callers 3

ShutdownMethod · 0.80
_ClearFreeMemoryMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected