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

◆ test()

bool fl::bitset_dynamic::test ( uint32_t pos) const
inlinenoexcept

Definition at line 209 of file bitset_dynamic.h.

209 {
210 if (pos < _size) {
211 const uint32_t idx = pos / bits_per_block;
212 const uint32_t off = pos % bits_per_block;
213 return (_blocks[idx] >> off) & 1;
214 }
215 return false;
216 }
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 operator[](), and fl::BitsetInlined< N >::resize().

+ Here is the caller graph for this function: