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

◆ set() [1/2]

void fl::bitset_dynamic::set ( uint32_t pos)
inlinenoexcept

Definition at line 166 of file bitset_dynamic.h.

166 {
167 if (pos < _size) {
168 const uint32_t idx = pos / bits_per_block;
169 const uint32_t off = pos % bits_per_block;
170 _blocks[idx] |= (static_cast<block_type>(1) << off);
171 }
172 }
uint8_t pos
Definition Blur.ino:11
static constexpr uint32_t bits_per_block
block_type * _blocks

References _blocks, _size, bits_per_block, and pos.

Referenced by fl::BitsetInlined< N >::resize(), and set().

+ Here is the caller graph for this function: