MCPcopy Create free account
hub / github.com/Bzi-Han/AndroidSurfaceImgui / test

Method test

includes/ATouchEvent.h:35–38  ·  view source on GitHub ↗

To tell if a bit is set in array, it selects an element from the array, and test * if the relevant bit set. * Note the parameter "bit" is an index to the bit, 0 <= bit < BITS. */

Source from the content-addressed store, hash-verified

33 * Note the parameter "bit" is an index to the bit, 0 <= bit < BITS.
34 */
35 inline bool test(size_t bit) const
36 {
37 return (bit < BITS) ? mData[bit / WIDTH].test(bit % WIDTH) : false;
38 }
39 /* Returns total number of bytes needed for the array */
40 inline size_t bytes() { return (BITS + CHAR_BIT - 1) / CHAR_BIT; }
41 /* Returns true if array contains any non-zero bit from the range defined by start and end

Callers 1

ATouchEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected