MCPcopy Create free account
hub / github.com/cinder/Cinder / ImBitArraySetBit

Function ImBitArraySetBit

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

Source from the content-addressed store, hash-verified

616inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; }
617inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; }
618inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; }
619inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2)
620{
621 n2--;

Callers 4

TableUpdateLayoutMethod · 0.85
SetBitMethod · 0.85
SetBitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected