FastLED
3.9.15
Loading...
Searching...
No Matches
◆
reset()
[2/2]
FL_DISABLE_WARNING_POP
FL_DISABLE_WARNING_PUSH
FL_DISABLE_WARNING_NULL_DEREFERENCE
void fl::bitset_dynamic::reset
(
fl::u32
pos
)
inline
noexcept
Definition at line
174
of file
bitset_dynamic.h
.
174
{
175
if
(
_blocks
&&
pos
<
_size
) {
176
const
fl::u32 idx =
pos
/
bits_per_block
;
177
const
fl::u32 off =
pos
%
bits_per_block
;
178
_blocks
[idx] &= ~(
static_cast<
block_type
>
(1) << off);
179
}
180
}
pos
uint8_t pos
Definition
Blur.ino:11
fl::bitset_dynamic::block_type
fl::u16 block_type
Definition
bitset_dynamic.h:23
fl::bitset_dynamic::_blocks
block_type * _blocks
Definition
bitset_dynamic.h:25
fl::bitset_dynamic::_size
fl::u32 _size
Definition
bitset_dynamic.h:27
fl::bitset_dynamic::bits_per_block
static constexpr fl::u32 bits_per_block
Definition
bitset_dynamic.h:22
References
_blocks
,
_size
,
bits_per_block
, and
pos
.
fl
bitset_dynamic
Generated on Fri Aug 22 2025 20:59:36 for FastLED by
1.13.2