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
inline

Definition at line 244 of file bitset_dynamic.h.

244 {
245 if (_blocks && pos < _size) {
246 const fl::u32 idx = pos / bits_per_block;
247 const fl::u32 off = pos % bits_per_block;
248 return (_blocks[idx] >> off) & 1;
249 }
250 return false;
251 }
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 operator[]().

+ Here is the caller graph for this function: