MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / SetBit

Function SetBit

sourcecommon/utils.cpp:1239–1243  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1237}
1238//---------------------------------------------------------------------------
1239void SetBit(BYTE * data, int bit, bool set)
1240{
1241 if( set ) data[bit/8] |= (BYTE)(1<<(bit%8));
1242 else data[bit/8] &= ~(BYTE)(1<<(bit%8));
1243}
1244//---------------------------------------------------------------------------
1245bool GetBit(BYTE * data, int bit)
1246{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected