MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ImBitArrayClearBit

Function ImBitArrayClearBit

KBotExt/imgui/imgui_internal.h:547–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545inline void ImBitArrayClearAllBits(ImU32* arr, int bitcount) { memset(arr, 0, ImBitArrayGetStorageSizeInBytes(bitcount)); }
546inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; }
547inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; }
548inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; }
549inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2)
550{

Callers 3

ClearBitMethod · 0.85
ClearBitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected