I have an array of integer 1s and 0s (possibly need to get converted to byte type?). I have used an online ASCII to binary generator to get the equivalent binary of this 6 digit letter sequence:
abcdef
should equal 011000010110001001100011011001000110010101100110
in binary. So in c#, my array is [0,1,1,0,0,0,0...]
, built by:
int[] innerArr = new int[48];
for (int i = 0; i < 48); i++) {
int innerIsWhite = color.val[0] > 200 ? 0 : 1;
innerArr[i] = innerIsWhite;
}
I want to take this array, and convert it into abcdef
(and be able to do the opposite).
How do I do this? Is there a better way to be storing these ones and zeros.