Data comes from outside of the program as long array has to be converted into byte array. how to do that efficiently? As well, is there are way to select type of convertion as Little Endian or Big Endian.
Share
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.
You can do like this to convert a
longarray to abytearray:This is usually efficient enough. If you need it to be faster, you should use pointers in an unsafe code block.