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

Method SetArenaBasePtr

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

Source from the content-addressed store, hash-verified

635 inline void Reserve(int n, size_t sz, int a = 4) { IM_ASSERT(n == CurrIdx && n < CHUNKS); CurrOff = IM_MEMALIGN(CurrOff, a); Offsets[n] = CurrOff; Sizes[n] = (int)sz; CurrIdx++; CurrOff += (int)sz; }
636 inline int GetArenaSizeInBytes() { return CurrOff; }
637 inline void SetArenaBasePtr(void* base_ptr) { BasePtr = (char*)base_ptr; }
638 inline void* GetSpanPtrBegin(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n]); }
639 inline void* GetSpanPtrEnd(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n] + Sizes[n]); }
640 template<typename T>

Callers 1

TableBeginInitMemoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected