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

◆ set() [1/2]

FL_DISABLE_WARNING_POP FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE void fl::bitset_dynamic::set ( fl::u32 pos)
inline

Definition at line 193 of file bitset_dynamic.h.

193 {
194 if (_blocks && pos < _size) {
195 const fl::u32 idx = pos / bits_per_block;
196 const fl::u32 off = pos % bits_per_block;
197 _blocks[idx] |= (static_cast<block_type>(1) << off);
198 }
199 }
uint8_t pos
Definition Blur.ino:11
fl::unique_ptr< block_type[]> _blocks
static constexpr fl::u32 bits_per_block

References _blocks, _size, bits_per_block, FL_NOEXCEPT, and pos.

Referenced by set().

+ Here is the caller graph for this function: