MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / ImBitArrayTestBit

Function ImBitArrayTestBit

plugins/Cardinal/src/DearImGui/imgui_internal.h:522–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520 ImVec4 ToVec4() const { return ImVec4(Min.x, Min.y, Max.x, Max.y); }
521};
522IM_MSVC_RUNTIME_CHECKS_RESTORE
523
524// Helper: ImBitArray
525inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; }
526inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; }
527inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; }
528inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2)

Callers 1

TestBitFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBitFunction · 0.68