Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ toggle
Method
toggle
library/include/BitArray.h:148–154 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
146
}
147
148
void toggle (T index)
149
{
150
size_type byte = index / 8;
151
extend(index);
152
uint8_t bit = 1 << (index % 8);
153
_bits[byte] ^= bit;
154
}
155
156
bool is_set (T index) const
157
{
Callers
1
color
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected