Discussion Board
-
Put an integer into the TDes by bytes
2004-08-18, 12:17
#1
Regular Contributor
I want to put an integer into a TDes, it tooks 4 bytes, how can i do this? also want from the first 4 bytes in a TDes to an integer.
Thanks a lot.
Last edited by vacheldai; 2004-08-18 at 12:42.
-
Regular Contributor
Anyone can help me? Thanks.
vachel
-
Super Contributor
There are two classes that can help: BigEndian and LittleEndian
and their methods Get32() and Put32()...
-
Registered User
i think you can use this function Mem::copy()
-
Regular Contributor
Thanks, and how can i do the same with TUnit8 ? For example: put 127 into TDes and take 1 byte.
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