Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2380,6 +2380,11 @@ ImGuiID ImHashData(const void* data_p, size_t data_size, ImGuiID seed)
// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements.
ImGuiID ImHashStr(const char* data_p, size_t data_size, ImGuiID seed)
{
if (data_p == nullptr)
{
return seed;
}

seed = ~seed;
ImU32 crc = seed;
const unsigned char* data = (const unsigned char*)data_p;
Expand Down