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

◆ assign()

template<uint32_t N>
void fl::BitsetFixed< N >::assign ( size_t n,
bool value )
inline

Definition at line 72 of file bitset.h.

72 {
73 if (n > N) {
74 n = N;
75 }
76 for (size_t i = 0; i < n; ++i) {
77 set(i, value);
78 }
79 }
BitsetFixed & set(uint32_t pos, bool value=true)
Sets or clears the bit at position pos.
Definition bitset.h:59
A simple fixed-size Bitset implementation similar to std::Bitset.
Definition bitset.h:21

References set().

+ Here is the call graph for this function: