FastLED 3.9.15
Loading...
Searching...
No Matches

◆ flip() [2/2]

FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE void fl::bitset_dynamic::flip ( fl::u32 pos)
inlinenoexcept

Definition at line 207 of file bitset_dynamic.h.

207 {
208 if (_blocks && pos < _size) {
209 const fl::u32 idx = pos / bits_per_block;
210 const fl::u32 off = pos % bits_per_block;
211 _blocks[idx] ^= (static_cast<block_type>(1) << off);
212 }
213 }
uint8_t pos
Definition Blur.ino:11
block_type * _blocks
static constexpr fl::u32 bits_per_block

References _blocks, _size, bits_per_block, and pos.