MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetVoidPtr

Method GetVoidPtr

3rdparty/imgui/src/imgui.cpp:2963–2969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2961}
2962
2963void* ImGuiStorage::GetVoidPtr(ImGuiID key) const
2964{
2965 ImGuiStoragePair* it = ImLowerBound(const_cast<ImGuiStoragePair*>(Data.Data), const_cast<ImGuiStoragePair*>(Data.Data + Data.Size), key);
2966 if (it == Data.Data + Data.Size || it->key != key)
2967 return NULL;
2968 return it->val_p;
2969}
2970
2971// References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer.
2972int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val)

Callers 1

FindWindowByIDMethod · 0.80

Calls 1

ImLowerBoundFunction · 0.70

Tested by

no test coverage detected