|
-
Mar 15th, 2008, 05:14 PM
#1
Thread Starter
Frenzied Member
[2005] Convert a number to a byte array
I noticed that packets are sent in an array of bytes.
For example:
{ 0xF7, 0x13, 0xFE }
How can I convert a number such as 396 to a byte array such as this?
Thanks
Code examples aren't necessary. I'd rather just have the algorithm/technique in the conversion explained to me.
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
|