MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / BuildSortByKey

Method BuildSortByKey

include/imgui/imgui.cpp:2911–2914  ·  view source on GitHub ↗

For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once.

Source from the content-addressed store, hash-verified

2909
2910// For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once.
2911void ImGuiStorage::BuildSortByKey()
2912{
2913 ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), PairComparerByID);
2914}
2915
2916int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
2917{

Callers 2

GetNextSelectedItemMethod · 0.80

Calls 1

ImQsortFunction · 0.85

Tested by

no test coverage detected