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

Function ByteToBinary

sourcecommon/utils.cpp:1155–1161  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1153}
1154//---------------------------------------------------------------------------
1155AnsiString ByteToBinary(BYTE val)
1156{
1157 char str[10];
1158 for(int j=0; j<8; j++) str[7-j] = (val & (1<<j)) ? '1' : '0';
1159 str[8] = 0;
1160 return AnsiString(str);
1161}
1162//---------------------------------------------------------------------------
1163AnsiString ExtractSubString(AnsiString s, int WordNumber, AnsiString delim)
1164{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected