MirBSD manpage: XFetchBuffer(3), XFetchBytes(3), XRotateBuffers(3), XStoreBuffer(3), XStoreBytes(3)

XStoreBytes(3X11)        XLIB FUNCTIONS         XStoreBytes(3X11)


     XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRota-
     teBuffers - manipulate cut and paste buffers


     int XStoreBytes(Display *display, char *bytes, int nbytes);

     int XStoreBuffer(Display *display, char *bytes, int nbytes,
          int buffer);

     char *XFetchBytes(Display *display, int *nbytes_return);

     char *XFetchBuffer(Display *display, int *nbytes_return, int

     int XRotateBuffers(Display *display, int rotate);


     or from which you want the stored data returned

     buffer    Specifies the buffer in which you want to store
               the bytes.

     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.

               Returns the number of bytes in the buffer.

     rotate    Specifies how much to rotate the cut buffers.


     The 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

     XStoreBuffer can generate a BadAlloc error.

     The XFetchBytes function returns the number of bytes in the
     nbytes_return argument, if the buffer contains data. Other-
     wise, the function returns NULL and sets nbytes to 0. The
     appropriate amount of storage is allocated and the pointer

XFree86                   Version 4.5.0                         1

XStoreBytes(3X11)        XLIB FUNCTIONS         XStoreBytes(3X11)

     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.


     BadAlloc  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 gen-
               erate this error.


     Xlib - C Language X Interface

XFree86                   Version 4.5.0                         2

Generated on 2021-12-07 11:07:08 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.