Jason Simpkins <[EMAIL PROTECTED]> wrote:
> The reason I ask is that I'm dealing with binary data coming in from the
> serial port and it is
> low byte/high byte and least significant bit first. I need know if I need
> to conver this to the palm
> format.
UInt8 low = read();
UInt8 high = read();
UInt16 datum = (high << 8) | low;
John "look, Ma, I don't know what endianness I am but it works anyway!"
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/