V
Vince
I would like to know how I can extract some data from a byte array.
For example let's say I have a byte array with 4 elements ie 32 bits.
BYTE buf[4];
I fill buf with the following values : 00011{100 1}1110101 10100101
00000001.
Now I want to get the values between bracket.
How can I do that ?
Is Bitset appropriate knowing that in reality my array is 29 bytes long
and I want to extract 1-32 bits from a defined offset.
For example let's say I have a byte array with 4 elements ie 32 bits.
BYTE buf[4];
I fill buf with the following values : 00011{100 1}1110101 10100101
00000001.
Now I want to get the values between bracket.
How can I do that ?
Is Bitset appropriate knowing that in reality my array is 29 bytes long
and I want to extract 1-32 bits from a defined offset.