MCPcopy Create free account
hub / github.com/SpecialKO/SpecialK / ImBitArraySetBit

Function ImBitArraySetBit

include/imgui/imgui_internal.h:570–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; }
569inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; }
570inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; }
571inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2)
572{
573 n2--;

Callers 4

TableUpdateLayoutMethod · 0.85
SetBitMethod · 0.85
SetBitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected