| 84 | } |
| 85 | |
| 86 | bool BitVector::testAll() const |
| 87 | { |
| 88 | const U32 remaider = mSize % 8; |
| 89 | const U32 testBytes = mSize / 8; |
| 90 | |
| 91 | for ( U32 i=0; i < testBytes; i++ ) |
| 92 | if ( mBits[i] != 0xFF ) |
| 93 | return false; |
| 94 | |
| 95 | if ( remaider == 0 ) |
| 96 | return true; |
| 97 | |
| 98 | const U8 mask = (U8)0xFF >> ( 8 - remaider ); |
| 99 | return ( mBits[testBytes] & mask ) == mask; |
| 100 | } |
| 101 | |
| 102 | bool BitVector::testAllClear() const |
| 103 | { |
no outgoing calls
no test coverage detected