Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Fri Nov 01, 2013 9:11 pm Post subject:
BYTE (if you are referring to C/C++) is defined as 'unsigned char', which is 1 byte. If you are truncating the value, just index the first byte you have.
If you are converting a 4 byte type to a byte, cast it like:
unsigned char data = (unsigned char)oldData; _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum