Re: [EXTERNAL] - Details on using xcb_send_request()?
Alan Coopersmith <[email protected]> Thu, 4 Feb 2021 08:13:05 -0800
| Newsgroups | gmane.comp.freedesktop.xcb |
|---|---|
| Message-ID | <[email protected]> |
On 2/4/21 7:50 AM, Junk Mail wrote: > - all > I am going to assume that the part where you say "every X11 request must be a > multiple of 4 bytes" is specific to the implementation, the protocol says: >>Every request consists of four bytes of a header (containing the major opcode, > the length field, and a data byte) followed by zero or more additional bytes of > data. > So every request is four bytes for header + data, if it has to be multiple of 4, > then the text in the protocol should be updated to reflect this. https://www.x.org/releases/current/doc/xproto/x11protocol.html#request_format already says the length of a request is defined in "units of four bytes". -- -Alan Coopersmith- [email protected] Oracle Solaris Engineering - https://blogs.oracle.com/alanc