Put an integer into the TDes by bytes
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.
Anyone can help me? Thanks.
There are two classes that can help: BigEndian and LittleEndian
and their methods Get32() and Put32()...
i think you can use this function Mem::copy()
Thanks, and how can i do the same with TUnit8 ? For example: put 127 into TDes and take 1 byte.