Hey Vinny_68
I was interested in your problem and figured out how to do perform some of the functionality. If you want to convert your Byte array (assuming its already an Byte array) to an array of Bits, use this statement:
Dim mybits() as new System.Collections.BitArray(your_byte_array)
After this, converting some of these Bits to a specific data type im not really sure how to do yet. There is a class; System.BitConverter that will convert a batch of bits to various data types. All the methods i saw in there only accept a minimum of 16 bits for the conversion to the smallest data type. Im sure there is a way to get this done though. I will post more info once i learn more.
Also, you might have to pad your 6 bits with dummy data for some conversion methods, or those might do that for you. Im not a expert in this area at all, im just speculating.
|