Richard Anderson <[EMAIL PROTECTED]> wrote:

> Multibyte paddings fine for some situations and I think all compliers for
> these targets do it. However Im talking about receiving comms data as byte
> streams, a different matter entirely
> 
> If a structure of words is recieved over a serial link as a byte stream then
> you dont know if if the words are aligned or not.
> 
> You can either read it all as bytes and recombine it yourself - therefore
> not being able to overlay a structure.
> or see if the first byte is at an odd address and if so do a MemMove
> (source_address+1,source_adress, len) to align it all.
> 
> Most compliers sort this out for you.

Thanks for explaining. Apparently I *don't* know everything, after all 
:-)

--
Roger Chaplin
<[EMAIL PROTECTED]>

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to