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

Method swap

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

Source from the content-addressed store, hash-verified

698 int offset_from_ptr(const T* p) { IM_ASSERT(p >= begin() && p < end()); const ptrdiff_t off = (const char*)p - Buf.Data; return (int)off; }
699 T* ptr_from_offset(int off) { IM_ASSERT(off >= 4 && off < Buf.Size); return (T*)(void*)(Buf.Data + off); }
700 void swap(ImChunkStream<T>& rhs) { rhs.Buf.swap(Buf); }
701};
702
703// Helper: ImGuiTextIndex<>

Callers 4

EndFrameMethod · 0.80
UpdateKeyRoutingTableMethod · 0.80
DeIndexAllBuffersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected