Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: rws@expo.lcs.mit.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Alignment of 16-bit Values in X Protocol Message-ID: <9102071407.AA14213@expire.lcs.mit.edu> Date: 7 Feb 91 14:07:18 GMT References: <9102070338.AA29549@icad.COM> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 12 Does the definition of the X protocol officially guarantee that 16-bit values will be aligned on 16-bit boundaries (and likewise for 32-bit values)? The encoding makes it happen in most, but not all, cases. The encoding of the PolyText16 request appears to be capable of misaligning 16-bit values. No, it misaligns 32-bit values (the font ids). CHAR2B are specified as 2 bytes, not as 16-bit integers, so they aren't misaligned. :-)