MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / isFull

Method isFull

libraries/Set/Set.cpp:123–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122
123bool Set::isFull()
124{
125 // check two elements per loop
126 // is faster for full sets but slower for empty set.
127 // footprint is ~25 bytes larger
128 // overall performance gain
129 uint8_t i = 32;
130 do
131 {
132 if ((_mem[--i]) != 255) return false;
133 }
134 while (i != 0);
135 return true;
136}
137
138
139int Set::setCurrent(const uint8_t current)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36