After many calculations I have String containing binary representation of some data.
How to convert it into array of ints in a consistent way.
I can take every 32 bits and put it into array but it doesn’t seem like this solution.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Parsing each 32 bit section seems like a perfectly good solution to me. Note that it’s probably best to use
Longto do the parsing, to avoid problems if the leading digit is 1. For example: