void ByteToBit(bool *Out, const char *In, int bits) { for (int i=0; i<bits; ++i) Out[i] = (In[i>>3]>>(7-i&7)) & 1; }