C++ function to convert bytes array to bit array
- or -
Post a project like this2650
$20
- Posted:
- Proposals: 0
- Remote
- #1399850
- Completed
Description
Experience Level: Intermediate
Estimated project duration: 1 day or less
General information for the business: software
Num. of modules: 1
Description of every module: Let us say we have array of bytes B = {0xFA, 0x10} the two bytes together is 0x FA10 = 1111101000010000
I need to converted to bits array b = {1,1,1,1.....,0,0,0} then collect the bits to int but not all the bits for example
convert_integer b (3,4) = convert form bit 3 for length of 4 bits long 1101 = 13.
now the bytes array can go up to 1-16 bytes long and max. convert_integer length is 64 bits long.
that is all, I know is simple but I couldn't find easy way to do it, so I post it to get done quickly
Description of requirements/functionality: Let us say we have array of bytes B = {0xFA, 0x10} the two bytes together is 0x FA10 = 1111101000010000
I need to converted to bits array b = {1,1,1,1.....,0,0,0} then collect the bits to int but not all the bits for example
convert_integer b (3,4) = convert form bit 3 for length of 4 bits long 1101 = 13.
now the bytes array can go up to 1-16 bytes long and max. convert_integer length is 64 bits long.
that is all, I know is simple but I couldn't find easy way to do it, so I post it to get done quickly
Specific technologies required: I am using visual studio 2003
OS requirements: Windows
Extra notes: I am using visual studio 2003, please use easy way
Num. of modules: 1
Description of every module: Let us say we have array of bytes B = {0xFA, 0x10} the two bytes together is 0x FA10 = 1111101000010000
I need to converted to bits array b = {1,1,1,1.....,0,0,0} then collect the bits to int but not all the bits for example
convert_integer b (3,4) = convert form bit 3 for length of 4 bits long 1101 = 13.
now the bytes array can go up to 1-16 bytes long and max. convert_integer length is 64 bits long.
that is all, I know is simple but I couldn't find easy way to do it, so I post it to get done quickly
Description of requirements/functionality: Let us say we have array of bytes B = {0xFA, 0x10} the two bytes together is 0x FA10 = 1111101000010000
I need to converted to bits array b = {1,1,1,1.....,0,0,0} then collect the bits to int but not all the bits for example
convert_integer b (3,4) = convert form bit 3 for length of 4 bits long 1101 = 13.
now the bytes array can go up to 1-16 bytes long and max. convert_integer length is 64 bits long.
that is all, I know is simple but I couldn't find easy way to do it, so I post it to get done quickly
Specific technologies required: I am using visual studio 2003
OS requirements: Windows
Extra notes: I am using visual studio 2003, please use easy way
Amr S.
100% (4)Projects Completed
4
Freelancers worked with
5
Projects awarded
40%
Last project
29 Dec 2016
United Arab Emirates
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Hi Amr,
Do you need this to be done only in visual studio 2003 ?
I am using Borland C++ Builder since 12 years.
Thanks
Sumit
SaS TechnologiesAmr S.23 Dec 2016Hi,
The project has been assigned to someone else, thank you
269675
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies