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

◆ test()

FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_NULL_DEREFERENCE bool fl::bitset_dynamic::test ( fl::u32 pos) const
inlinenoexcept

Definition at line 237 of file bitset_dynamic.h.

237 {
238 if (_blocks && pos < _size) {
239 const fl::u32 idx = pos / bits_per_block;
240 const fl::u32 off = pos % bits_per_block;
241 return (_blocks[idx] >> off) & 1;
242 }
243 return false;
244 }
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.

Referenced by operator[]().

+ Here is the caller graph for this function: