I want to convert hex to binary without losing bits. I want to
preserve the 8-bits because I ultimately need a 24-bit string to grab
information from. I am just using this line of code for the
conversion:
string revLim = Convert.ToStrin g(curveData[4], 2);
// curveData[4] = 0x14
// I want 00010100
// I am getting 10100
So, this creates an issue when I want to combine the three bytes
because it totally screws up the bit fields that I need to grab.
Thanks in advance!!
preserve the 8-bits because I ultimately need a 24-bit string to grab
information from. I am just using this line of code for the
conversion:
string revLim = Convert.ToStrin g(curveData[4], 2);
// curveData[4] = 0x14
// I want 00010100
// I am getting 10100
So, this creates an issue when I want to combine the three bytes
because it totally screws up the bit fields that I need to grab.
Thanks in advance!!
Comment