MCPcopy Create free account
hub / github.com/FastLED/FastLED / test

Method test

src/fl/stl/bitset.h:550–557  ·  view source on GitHub ↗

Tests whether the bit at position pos is set.

Source from the content-addressed store, hash-verified

548
549 /// Tests whether the bit at position pos is set.
550 bool test(fl::u32 pos) const FL_NOEXCEPT {
551 if (_storage.template is<fixed_bitset>()) {
552 return pos < N ? _storage.template ptr<fixed_bitset>()->test(pos)
553 : false;
554 } else {
555 return _storage.template ptr<bitset_dynamic>()->test(pos);
556 }
557 }
558
559 /// Returns the value of the bit at position pos.
560 bool operator[](fl::u32 pos) const FL_NOEXCEPT { return test(pos); }

Callers

nothing calls this directly

Calls 1

testMethod · 0.45

Tested by

no test coverage detected