[Xcb] xproto.xml QueryTextExtents question

Thomas Hunger hto at arcor.de
Tue May 8 12:06:12 PDT 2007


> It's because the list length doesn't always appear on the wire in
> the protocol. Often the request's standard length field is enough
> for the server to infer the length of the list. However, our
> generated C code always includes a length argument for each list so
> that the client can compute the right standard length field. If the
> XML doesn't explicitly include a field for the length, an extra
> C-binding function argument is generated automatically.
>
> In the case of QueryTextExtents, the elements of the list are two
> bytes long. The standard length field says how many four-byte
> chunks there are in the request. So the "odd_length" field
> indicates whether the last two bytes are padding or contain an
> actual character. No other length field is needed.

Hi Jamey,

that was very helpful, thanks a lot! 

Tom


More information about the Xcb mailing list