MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ImBitArraySetBit

Function ImBitArraySetBit

Source/3rdParty/imgui/imgui_internal.h:631–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; }
630inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; }
631inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; }
632inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2)
633{
634 n2--;

Callers 4

TableUpdateLayoutMethod · 0.85
SetBitMethod · 0.85
SetBitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected