.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium .\" .\" Permission is hereby granted, free of charge, to any person obtaining .\" a copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, .\" distribute, sublicense, and/or sell copies of the Software, and to .\" permit persons to whom the Software is furnished to do so, subject to .\" the following conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR .\" OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of the X Consortium shall .\" not be used in advertising or otherwise to promote the sale, use or .\" other dealings in this Software without prior written authorization .\" from the X Consortium. .\" .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by .\" Digital Equipment Corporation .\" .\" Portions Copyright \(co 1990, 1991 by .\" Tektronix, Inc. .\" .\" Permission to use, copy, modify and distribute this documentation for .\" any purpose and without fee is hereby granted, provided that the above .\" copyright notice appears in all copies and that both that copyright notice .\" and this permission notice appear in all copies, and that the names of .\" Digital and Tektronix not be used in in advertising or publicity pertaining .\" to this documentation without specific, written prior permission. .\" Digital and Tektronix makes no representations about the suitability .\" of this documentation for any purpose. .\" It is provided ``as is'' without express or implied warranty. .\" .\" Copyright (c) 1998, 2001 The X Japanese Documentation Project. .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, dis- .\" tribute, sublicense, and/or sell copies of the Software, and to permit .\" persons to whom the Software is furnished to do so, subject to the fol- .\" lowing conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- .\" ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT .\" SHALL THE X JAPANESE DOCUMENTATION PROJECT BE LIABLE FOR ANY CLAIM, .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The X Japanese .\" Documentation Project shall not be used in advertising or otherwise to .\" promote the sale, use or other dealings in this Software without prior .\" written authorization from The X Japanese Documentation Project. .\" .\" X Window System is a trademark of The Open Group. .\" .\" Translated Tue Oct 27 00:00:00 JST 1998 .\" by FUJIWARA Teruyoshi .\" Updated Mon Oct 8 23:27:32 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .\" $XFree86: xc/doc/man/X11/XStBytes.man,v 1.3 2001/02/09 03:47:46 tsi Exp $ .\" .ds xT X Toolkit Intrinsics \- C Language Interface .ds xW Athena X Widgets \- C Language X Toolkit Interface .ds xL Xlib \- C Language X Interface .ds xC Inter-Client Communication Conventions Manual .na .de Ds .nf .\\$1D \\$2 \\$1 .ft 1 .\".ps \\n(PS .\".if \\n(VS>=40 .vs \\n(VSu .\".if \\n(VS<=39 .vs \\n(VSp .. .de De .ce 0 .if \\n(BD .DF .nr BD 0 .in \\n(OIu .if \\n(TM .ls 2 .sp \\n(DDu .fi .. .de FD .LP .KS .TA .5i 3i .ta .5i 3i .nf .. .de FN .fi .KE .LP .. .de IN \" send an index entry to the stderr .. .de C{ .KS .nf .D .\" .\" choose appropriate monospace font .\" the imagen conditional, 480, .\" may be changed to L if LB is too .\" heavy for your eyes... .\" .ie "\\*(.T"480" .ft L .el .ie "\\*(.T"300" .ft L .el .ie "\\*(.T"202" .ft PO .el .ie "\\*(.T"aps" .ft CW .el .ft R .ps \\n(PS .ie \\n(VS>40 .vs \\n(VSu .el .vs \\n(VSp .. .de C} .DE .R .. .de Pn .ie t \\$1\fB\^\\$2\^\fR\\$3 .el \\$1\fI\^\\$2\^\fP\\$3 .. .de ZN .ie t \fB\^\\$1\^\fR\\$2 .el \fI\^\\$1\^\fP\\$2 .. .de hN .ie t <\fB\\$1\fR>\\$2 .el <\fI\\$1\fP>\\$2 .. .de NT .ne 7 .ds NO Note .if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2 .if \\n(.$ .if !'\\$1'C' .ds NO \\$1 .ie n .sp .el .sp 10p .TB .ce \\*(NO .ie n .sp .el .sp 5p .if '\\$1'C' .ce 99 .if '\\$2'C' .ce 99 .in +5n .ll -5n .R .. . \" Note End -- doug kraft 3/85 .de NE .ce 0 .in -5n .ll +5n .ie n .sp .el .sp 10p .. .ny0 .TH XStoreBytes 3X11 "Release 6.5" "X Version 11" "XLIB FUNCTIONS" .SH 名前 .\"0 XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers \- manipulate cut and paste buffers XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers \- カット・アンド・ペースト用バッファを操作する .SH 書式 XStoreBytes\^(\^\fIdisplay\fP, \fIbytes\fP\^, \fInbytes\fP\^) .br Display *\fIdisplay\fP\^; .br char *\fIbytes\fP\^; .br int \^\fInbytes\fP\^; .br .LP XStoreBuffer\^(\^\fIdisplay\fP, \fIbytes\fP\^, \fInbytes\fP\^, \fIbuffer\fP\^) .br Display *\fIdisplay\fP\^; .br char *\fIbytes\fP\^; .br int \^\fInbytes\fP\^; .br int \fIbuffer\fP\^; .LP char *XFetchBytes\^(\^\fIdisplay\fP, \fInbytes_return\fP\^) .br Display *\fIdisplay\fP\^; .br int *\fInbytes_return\fP\^; .LP char *XFetchBuffer\^(\^\fIdisplay\fP, \fInbytes_return\fP\^, \fIbuffer\fP\^) .br Display *\fIdisplay\fP\^; .br int *\fInbytes_return\fP\^; .br int \fIbuffer\fP\^; .LP XRotateBuffers\^(\^\fIdisplay\fP, \fIrotate\fP\^) .br Display *\fIdisplay\fP\^; .br int \fIrotate\fP\^; .SH 引き数 .\"0 .ds Fn in which you want to store the bytes .\"0 or from which you want the stored data returned .IP \fIbuffer\fP 1i .\"0 Specifies the buffer \*(Fn. バイト列を格納するバッファを指定する。 あるいは、格納しているデータが返されるバッファを指定する。 .IP \fIbytes\fP 1i .\"0 Specifies the bytes, which are not necessarily ASCII or null-terminated. バイト列を指定する。 これは必ずしも ASCII でなくてもよいし、NULL で終わる必要もない。 .IP \fIdisplay\fP 1i .\"0 Specifies the connection to the X server. X サーバへの接続を指定する。 .IP \fInbytes\fP 1i .\"0 Specifies the number of bytes to be stored. 格納するバイト数を指定する。 .IP \fInbytes_return\fP 1i .\"0 Returns the number of bytes in the buffer. バッファ内のデータのバイト数が返される。 .IP \fIrotate\fP 1i .\"0 Specifies how much to rotate the cut buffers. カットバッファをローテートさせる量を指定する。 .SH 説明 .\"0 The data can have embedded null characters .\"0 and need not be null-terminated. データの途中に NULL 文字があっても良いし、データが NULL 文字で終わる必 要もない。 .\"0 The cut buffer's contents can be retrieved later by .\"0 any client calling .\"0 .ZN XFetchBytes . カットバッファの内容は後で任意のクライアントから .ZN XFetchBytes を呼び出すことで取り出せる。 .LP .\"0 .ZN XStoreBytes .\"0 can generate a .\"0 .ZN BadAlloc .\"0 error. .ZN XStoreBytes はエラー .ZN BadAlloc を起こすことがある。 .LP .\"0 If an invalid buffer is specified, the call has no effect. 不正なバッファが指定された場合、この呼び出しでは何も起こらない。 .\"0 The data can have embedded null characters .\"0 and need not be null-terminated. データの途中に NULL 文字があっても良いし、データが NULL 文字で終わる必 要もない。 .LP .\"0 .ZN XStoreBuffer .\"0 can generate a .\"0 .ZN BadAlloc .\"0 error. .ZN XStoreBuffer はエラー .ZN BadAlloc を起こすことがある。 .LP .\"0 The .\"0 .ZN XFetchBytes .\"0 function .\"0 returns the number of bytes in the nbytes_return argument, .\"0 if the buffer contains data. 関数 .ZN XFetchBytes は、カットバッファ内にデータがあれば、引き数 nbytes_return にそのバイト 数を返す。 .\"0 Otherwise, the function .\"0 returns NULL and sets nbytes to 0. そうでない場合は関数は NULL を返し、nbytes_return には 0 が設定される。 .\"0 The appropriate amount of storage is allocated and the pointer returned. 適切な量のメモリが割り当てられ、そのポインタが返される。 .\"0 The client must free this storage when finished with it by calling .\"0 .ZN XFree . クライアントはデータを使い終わった後、 .ZN XFree を呼んでメモリを解放しなければならない。 .LP .\"0 The .\"0 .ZN XFetchBuffer .\"0 function returns zero to the nbytes_return argument .\"0 if there is no data in the buffer or if an invalid .\"0 buffer is specified. 関数 .ZN XFetchBuffer は、バッファ内にデータがない場合と不正なバッファが指定された場合には 引き数 nbytes_return に 0 を返す。 .LP .\"0 .ZN XFetchBuffer .\"0 can generate a .\"0 .ZN BadValue .\"0 error. .ZN XFetchBuffer はエラー .ZN BadValue を起こすことがある。 .LP .\"0 The .\"0 .ZN XRotateBuffers .\"0 function rotates the cut .\"0 buffers, such that buffer 0 becomes buffer n, .\"0 buffer 1 becomes n + 1 mod 8, and so on. 関数 .ZN XRotateBuffers はバッファをローテートさせる。これはバッファ 0 をバッファ n とし、 バッファ 1 を n + 1 mod 8 にするという形で行われる。 .\"0 This cut buffer numbering is global to the display. このカットバッファの番号付けはディスプレイについて大域的なものである。 .\"0 Note that .\"0 .ZN XRotateBuffers .\"0 generates .\"0 .ZN BadMatch .\"0 errors if any of the eight buffers have not been created. 8 つのバッファがいずれも作られていない場合には、 .ZN XRotateBuffers はエラー .ZN BadMatch となることに注意せよ。 .LP .\"0 .ZN XRotateBuffers .\"0 can generate a .\"0 .ZN BadMatch .\"0 error. .ZN XRotateBuffers はエラー .ZN BadMatch を起こすことがある。 .SH 返り値 .TP 1i .ZN BadAlloc .\"0 The server failed to allocate the requested resource or server memory. 要求されたリソースやサーバメモリの割り当てにサーバが失敗した。 .TP 1i .ZN BadAtom .\"0 A value for an Atom argument does not name a defined Atom. 引き数 Atom の値が、定義されている Atom を指していない。 .TP 1i .ZN BadMatch .\"0 Some argument or pair of arguments has the correct type and range but fails .\"0 to match in some other way required by the request. 引き数や引き数の組は正しい型・範囲を持っているが、そのリクエストが要求する 他の条件に適合できなかった。 .TP 1i .ZN BadValue .\"0 Some numeric value falls outside the range of values accepted by the request. .\"0 Unless a specific range is specified for an argument, the full range defined .\"0 by the argument's type is accepted. Any argument defined as a set of .\"0 alternatives can generate this error. 指定された数値に、リクエストの許容範囲を越えているものがある。引き数に対 して特定の範囲が指定されていなければ、引き数の型で定義されている全ての範 囲が許される。選択肢として定義されている引き数はこのエラーを起こすことが ある。 .SH 関連項目 XFree(3X11) .br \fI\*(xL\fP