L
Laszlo Szijarto
In C#, wha't the best way to reveser the bit order of a data type and then
convert it back to that datatype?
So, take a byte, reverse bits, convert it back to a byte. I tried to get a
BitArray and then call Array.Reverse(), but how to convert back to byte?
How about flipping an odd number of bits, say a group of 4 bits, then
converting the 4 bits back to an int equivalent?
Thanks you in advance for your help,
Laszlo
convert it back to that datatype?
So, take a byte, reverse bits, convert it back to a byte. I tried to get a
BitArray and then call Array.Reverse(), but how to convert back to byte?
How about flipping an odd number of bits, say a group of 4 bits, then
converting the 4 bits back to an int equivalent?
Thanks you in advance for your help,
Laszlo