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

Method GetSpanPtrBegin

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

Source from the content-addressed store, hash-verified

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>
641 inline void GetSpan(int n, ImSpan<T>* span) { span->set((T*)GetSpanPtrBegin(n), (T*)GetSpanPtrEnd(n)); }

Callers 1

TableBeginInitMemoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected