Hi,
I have some bytes read from a file as follows.
€…°…°…°€…°€…°€…
how to convert these bytes to hexadecimal?
Many thanks in advance.
Hi,
I have some bytes read from a file as follows.
€…°…°…°€…°€…°€…
how to convert these bytes to hexadecimal?
Many thanks in advance.
You could get the values with [] operator, like first byte from buffer called myBuf, you could get like this:
TInt numNum= myBuf[0];
And if you want to add it as an hex value to a buffer, just call Num, or AppendNum, and specify EHex with the function.
Thanks yucca.
I tried this method, and I can get the hexa represeation. However, the hexa representation i retrieved doesnt seems to be correct as what it is suppose to be. Is there any conversion or anything else that need to be done?
I don't see any need for any conversion in there. You should get the correct value from the buffer with the index really.