|
-
March 4th, 1999, 09:59 PM
#2
How do I extract doubles, longs, integers etc, from a BYTE array
OK, I have a byte array that contains a stream of binary data packets. Some are doubles(8bytes), some longs(4 bytes) etc. For this example lets say the first 8 bytes of my array is a binary double value the next 4 bytes are a binary long integer, the next 2 are a binary integer. How do I assign the first 8 bytes to my variable dDblx, the next four to my variable lLngx and the next two bytes
to my variable iIntx?
I can not use a Type struct because the bytes are not always in this order. Any suggestions?
Thanks, Terry
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|