XStoreBytes - Online Linux Manual PageSection : 3
Updated : libX11 1.8.4
Source : X Version 11
Note : XLIB FUNCTIONS

NAMEXStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers − manipulate cut and paste buffers

SYNTAXint XStoreBytes ( Display *display , _Xconst char *bytes , int  nbytes); int XStoreBuffer ( Display *display , _Xconst char *bytes , int  nbytes , int buffer); char *XFetchBytes ( Display *display , int *nbytes_return); char *XFetchBuffer ( Display *display , int *nbytes_return , int buffer); int XRotateBuffers ( Display *display , int rotate);

ARGUMENTSbuffer Specifies the buffer in which you want to store the bytes or from which you want the stored data returned. bytes Specifies the bytes, which are not necessarily ASCII or null-terminated. display Specifies the connection to the X server. nbytes Specifies the number of bytes to be stored. nbytes_return Returns the number of bytes in the buffer. rotate Specifies how much to rotate the cut buffers.

DESCRIPTIONThe data can have embedded null characters and need not be null-terminated. The cut buffer's contents can be retrieved later by any client calling XFetchBytes. XStoreBytes can generate a BadAlloc error. If an invalid buffer is specified, the call has no effect. The data can have embedded null characters and need not be null-terminated. XStoreBuffer can generate a BadAlloc error. The XFetchBytes function returns the number of bytes in the nbytes_return argument, if the buffer contains data. Otherwise, the function returns NULL and sets nbytes to 0. The appropriate amount of storage is allocated and the pointer returned. The client must free this storage when finished with it by calling XFree. The XFetchBuffer function returns zero to the nbytes_return argument if there is no data in the buffer or if an invalid buffer is specified. XFetchBuffer can generate a BadValue error. The XRotateBuffers function rotates the cut buffers, such that buffer 0 becomes buffer n, buffer 1 becomes n + 1 mod 8, and so on. This cut buffer numbering is global to the display. Note that XRotateBuffers generates BadMatch errors if any of the eight buffers have not been created. XRotateBuffers can generate a BadMatch error.

DIAGNOSTICSBadAlloc  The server failed to allocate the requested resource or server memory. BadAtom  A value for an Atom argument does not name a defined Atom. BadMatch  Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request. BadValue  Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.

SEE ALSOXFree(3)
Xlib − C Language X Interface
0
Johanes Gumabo
Data Size   :   10,821 byte
man-XFetchBuffer.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 236,836
Visitor ID   :     :  
Visitor IP   :   3.145.106.176   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.