[Xcb] [EXTERNAL] - Details on using xcb_send_request()?

Alan Coopersmith alan.coopersmith at oracle.com
Thu Feb 4 16:13:05 UTC 2021


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-               alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - https://blogs.oracle.com/alanc


More information about the Xcb mailing list