MCPcopy Create free account
hub / github.com/Norbyte/bg3se / Destroy

Method Destroy

BG3Extender/Extender/Client/IMGUI/Objects.h:994–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992 }
993
994 bool Destroy(HandleType handle) override
995 {
996 auto ref = pool_.Find(handle);
997 if (ref) {
998 GameDelete(*ref);
999 }
1000
1001 return pool_.Free(handle);
1002 }
1003
1004private:
1005 SaltedPool<T*, uint64_t, uint32_t, 24, 31> pool_;

Callers

nothing calls this directly

Calls 3

GameDeleteFunction · 0.85
FindMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected