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

Method clear

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

Source from the content-addressed store, hash-verified

688 ImVector<char> Buf;
689
690 void clear() { Buf.clear(); }
691 bool empty() const { return Buf.Size == 0; }
692 int size() const { return Buf.Size; }
693 T* alloc_chunk(size_t sz) { size_t HDR_SZ = 4; sz = IM_MEMALIGN(HDR_SZ + sz, 4u); int off = Buf.Size; Buf.resize(off + (int)sz); ((int*)(void*)(Buf.Data + off))[0] = (int)sz; return (T*)(void*)(Buf.Data + off + (int)HDR_SZ); }

Callers 5

ClearFunction · 0.45
ClearMethod · 0.45
clearMethod · 0.45
ClearFreeMemoryFunction · 0.45
ClearMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected