MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / testAll

Method testAll

Engine/source/core/bitVector.cpp:86–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool 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
102bool BitVector::testAllClear() const
103{

Callers 3

onAddMethod · 0.45
setAnimClipMethod · 0.45
_prepRenderImageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected