|
| 1 | +# SOME DESCRIPTIVE TITLE. |
| 2 | +# Copyright (C) 2001-2021, Python Software Foundation |
| 3 | +# This file is distributed under the same license as the Python package. |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 | +# |
| 6 | +# Translators: |
| 7 | +# tomo, 2021 |
| 8 | +# mollinaca, 2021 |
| 9 | +# |
| 10 | +#, fuzzy |
| 11 | +msgid "" |
| 12 | +msgstr "" |
| 13 | +"Project-Id-Version: Python 3.10\n" |
| 14 | +"Report-Msgid-Bugs-To: \n" |
| 15 | +"POT-Creation-Date: 2021-07-29 13:22+0000\n" |
| 16 | +"PO-Revision-Date: 2021-07-29 13:25+0000\n" |
| 17 | +"Last-Translator: mollinaca, 2021\n" |
| 18 | +"Language-Team: Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n" |
| 19 | +"MIME-Version: 1.0\n" |
| 20 | +"Content-Type: text/plain; charset=UTF-8\n" |
| 21 | +"Content-Transfer-Encoding: 8bit\n" |
| 22 | +"Language: ja\n" |
| 23 | +"Plural-Forms: nplurals=1; plural=0;\n" |
| 24 | + |
| 25 | +#: ../../c-api/objbuffer.rst:4 |
| 26 | +msgid "Old Buffer Protocol" |
| 27 | +msgstr "古いバッファプロトコル" |
| 28 | + |
| 29 | +#: ../../c-api/objbuffer.rst:8 |
| 30 | +msgid "" |
| 31 | +"These functions were part of the \"old buffer protocol\" API in Python 2. In" |
| 32 | +" Python 3, this protocol doesn't exist anymore but the functions are still " |
| 33 | +"exposed to ease porting 2.x code. They act as a compatibility wrapper " |
| 34 | +"around the :ref:`new buffer protocol <bufferobjects>`, but they don't give " |
| 35 | +"you control over the lifetime of the resources acquired when a buffer is " |
| 36 | +"exported." |
| 37 | +msgstr "" |
| 38 | +"これらの関数は、 Python 2 の「古いバッファプロトコル」 API の一部です。 Python 3 では、もうこのプロトコルは存在しませんが、 " |
| 39 | +"2.x のコードを移植しやすいように関数は公開されています。 :ref:`新しいバッファプロトコル <bufferobjects>` " |
| 40 | +"と互換性のあるラッパー関数のように振る舞いますが、バッファがエクスポートされるときに取得されるリソースの生存期間を管理することはできません。" |
| 41 | + |
| 42 | +#: ../../c-api/objbuffer.rst:15 |
| 43 | +msgid "" |
| 44 | +"Therefore, it is recommended that you call :c:func:`PyObject_GetBuffer` (or " |
| 45 | +"the ``y*`` or ``w*`` :ref:`format codes <arg-parsing>` with the " |
| 46 | +":c:func:`PyArg_ParseTuple` family of functions) to get a buffer view over an" |
| 47 | +" object, and :c:func:`PyBuffer_Release` when the buffer view can be " |
| 48 | +"released." |
| 49 | +msgstr "" |
| 50 | +"従って、あるオブジェクトのバッファビューを取得するために、 :c:func:`PyObject_GetBuffer` (もしくは ``y*`` および " |
| 51 | +"``w*`` :ref:`フォーマットコード <arg-parsing>` で :c:func:`PyArg_ParseTuple` やその仲間) " |
| 52 | +"を呼び出し、バッファビューを解放するときには :c:func:`PyBuffer_Release` を呼び出します。" |
| 53 | + |
| 54 | +#: ../../c-api/objbuffer.rst:23 |
| 55 | +msgid "" |
| 56 | +"Returns a pointer to a read-only memory location usable as character-based " |
| 57 | +"input. The *obj* argument must support the single-segment character buffer " |
| 58 | +"interface. On success, returns ``0``, sets *buffer* to the memory location " |
| 59 | +"and *buffer_len* to the buffer length. Returns ``-1`` and sets a " |
| 60 | +":exc:`TypeError` on error." |
| 61 | +msgstr "" |
| 62 | +"文字ベースの入力として使える読み出し専用メモリ上の位置へのポインタを返します。 *obj* " |
| 63 | +"引数は単一セグメントからなる文字バッファインターフェースをサポートしていなければなりません。成功すると ``0`` を返し、 *buffer* " |
| 64 | +"をメモリの位置に、 *buffer_len* をバッファの長さに設定します。エラーの際には ``-1`` を返し、 :exc:`TypeError`" |
| 65 | +" をセットします。" |
| 66 | + |
| 67 | +#: ../../c-api/objbuffer.rst:32 |
| 68 | +msgid "" |
| 69 | +"Returns a pointer to a read-only memory location containing arbitrary data. " |
| 70 | +"The *obj* argument must support the single-segment readable buffer " |
| 71 | +"interface. On success, returns ``0``, sets *buffer* to the memory location " |
| 72 | +"and *buffer_len* to the buffer length. Returns ``-1`` and sets a " |
| 73 | +":exc:`TypeError` on error." |
| 74 | +msgstr "" |
| 75 | +"任意のデータを収めた読み出し専用のメモリ上の位置へのポインタを返します。 *obj* " |
| 76 | +"引数は単一セグメントからなる読み出し可能バッファインターフェースをサポートしていなければなりません。成功すると ``0`` を返し、 *buffer* " |
| 77 | +"をメモリの位置に、 *buffer_len* をバッファの長さに設定します。エラーの際には ``-1`` を返し、 :exc:`TypeError`" |
| 78 | +" をセットします。" |
| 79 | + |
| 80 | +#: ../../c-api/objbuffer.rst:41 |
| 81 | +msgid "" |
| 82 | +"Returns ``1`` if *o* supports the single-segment readable buffer interface. " |
| 83 | +"Otherwise returns ``0``. This function always succeeds." |
| 84 | +msgstr "" |
| 85 | +"*o* が単一セグメントからなる読み出し可能バッファインターフェースをサポートしている場合に ``1`` を返します。それ以外の場合には ``0`` を返します。\n" |
| 86 | +"この関数は常に成功します。" |
| 87 | + |
| 88 | +#: ../../c-api/objbuffer.rst:44 |
| 89 | +msgid "" |
| 90 | +"Note that this function tries to get and release a buffer, and exceptions " |
| 91 | +"which occur while calling corresponding functions will get suppressed. To " |
| 92 | +"get error reporting use :c:func:`PyObject_GetBuffer()` instead." |
| 93 | +msgstr "" |
| 94 | +"この関数は試しにバッファの取得と解放を行い、それぞれ対応する関数の呼び出し中に起こる例外は抑制されることに注意してください。\n" |
| 95 | +"エラーを報告させるには、 :c:func:`PyObject_GetBuffer()` を代わりに使ってください。" |
| 96 | + |
| 97 | +#: ../../c-api/objbuffer.rst:51 |
| 98 | +msgid "" |
| 99 | +"Returns a pointer to a writable memory location. The *obj* argument must " |
| 100 | +"support the single-segment, character buffer interface. On success, returns" |
| 101 | +" ``0``, sets *buffer* to the memory location and *buffer_len* to the buffer " |
| 102 | +"length. Returns ``-1`` and sets a :exc:`TypeError` on error." |
| 103 | +msgstr "" |
| 104 | +"書き込み可能なメモリ上の位置へのポインタを返します。 *obj* " |
| 105 | +"引数は単一セグメントからなる文字バッファインターフェースをサポートしていなければなりません。成功すると ``0`` を返し、 *buffer* " |
| 106 | +"をメモリの位置に、 *buffer_len* をバッファの長さに設定します。エラーの際には ``-1`` を返し、 :exc:`TypeError` " |
| 107 | +"をセットします。" |
0 commit comments