MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / BitArray_Test

Function BitArray_Test

src/tools.c:317–320  ·  view source on GitHub ↗

* Test a bit in a bit array. * @param array Bit array. * @param index Index in the array. * @return value of the bit. */

Source from the content-addressed store, hash-verified

315 * @return value of the bit.
316 */
317bool BitArray_Test(uint8 *array, uint16 index)
318{
319 return (array[index >> 3] & (1 << (index & 7))) != 0;
320}
321
322/**
323 * Set a bit in a bit array.

Callers 4

Map_UpdateFunction · 0.85
Map_MarkTileDirtyFunction · 0.85
GUI_Widget_Viewport_DrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected