xcb_res_query_resource_bytes(3)
π xcb_res_query_resource_bytes π
okay so bestie, welcome to the XCB Requests section of the manual, and today's main character is xcb_res_query_resource_bytes(3). pull up a chair, grab a boba, we're doing X11 resource byte queries and we're doing them adorably. π¦
β¨ NAME β¨
xcb_res_query_resource_bytes β
ngl the original manpage left this part blank. empty. a whole void. so likeβ¦ the name is the name, bestie, that's all we got. π
πΈ SYNOPSIS πΈ
first things first, you gotta pull in the header:
#include <xcb/res.h>
π Request function
xcb_res_query_resource_bytes_cookie_t
xcb_res_query_resource_bytes(xcb_connection_t *conn,
uint32_t client, uint32_t num_specs, const
xcb_res_resource_id_spec_t *specs);
π Reply datastructure
typedef struct xcb_res_query_resource_bytes_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t num_sizes;
uint8_t pad1[20];
} xcb_res_query_resource_bytes_reply_t;
π Reply function
xcb_res_query_resource_bytes_reply_t
*xcb_res_query_resource_bytes_reply(xcb_connection_t *conn,
xcb_res_query_resource_bytes_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors
int xcb_res_query_resource_bytes_sizes_length(const
xcb_res_query_resource_bytes_reply_t *reply);
xcb_res_resource_size_value_iterator_t
xcb_res_query_resource_bytes_sizes_iterator(const
xcb_res_query_resource_bytes_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11, obvi. your lil phone line to the server. πclientβTODO: NOT YET DOCUMENTED.yeah bestie, they left us on read. πnum_specsβTODO: NOT YET DOCUMENTED.also left on read. πspecsβTODO: NOT YET DOCUMENTED.the trio of mystery. iconic behaviour honestly.
π¦ REPLY FIELDS π¦
response_typeβ the type of this reply, which in this case isXCB_RES_QUERY_RESOURCE_BYTES. this field is also chillin' insidexcb_generic_reply_t, so you can use it to tell replies apart from each other. it's giving name tag at a party. πsequenceβ the sequence number of the last request processed by the X11 server. the server's lil receipt number. π§Ύlengthβ the length of the reply, in words. and heads up, a word is 4 bytes. not a dictionary word. a byte word. iykyk. βnum_sizesβTODO: NOT YET DOCUMENTED.once again, the docs said "no thoughts, head empty". π
π DESCRIPTION π
literally nothing here, bestie. the DESCRIPTION section is empty. a blank canvas. the manpage equivalent of a notes app draft titled "ideas". π
π RETURN VALUE π
Returns an xcb_res_query_resource_bytes_cookie_t. πͺ
Errors have to be handled when you call the reply function xcb_res_query_resource_bytes_reply.
But wait β if you'd rather handle errors in the event loop instead, use xcb_res_query_resource_bytes_unchecked. see xcb-requests(3) for the deets. π«Ά
π₯ ERRORS π₯
This request does never generate any errors. not one. zero. flawless. no notes. periodt. π β¨
π SEE ALSO π
the original left this section empty too. soβ¦ see also: nothing. see also: the void. see also: your own heart. π
π AUTHOR π
Generated from res.xml. if you've got corrections or improvements, hit up xcb@lists.freedesktop.org. they're literally asking, bestie, don't be shy. πΈ
okay and the lil sign-off at the bottom of the page said X Version 11 and libxcb 1.17.0, so there you have it β that's the vibe, that's the version, that's the whole page. mwah. πβ¨π¦
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms