|
-
September 30th, 2009, 05:34 PM
#9
Re: storing unsigned short value into a byte array
 Originally Posted by Lindley
Yes, although when you condense it the second way, then the endianness of the machine becomes a concern. It's just something to bear in mind.
You and Codeplug have been a blessing. Almost there! So bottom line is: Endian issues between machines is a 'non issue' with the first approach. The 'cost' though is 4 bytes.. ( a factor of 2 difference using my contrived example)
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
|