<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](concrete.xhtml "具體的對象層") | - [上一頁](buffer.xhtml "緩沖協議") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python/C API 參考手冊](index.xhtml) ? - [抽象對象層](abstract.xhtml) ? - $('.inline-search').show(0); | # Old Buffer Protocol 3\.0 版后已移除. These functions were part of the "old buffer protocol" API in Python 2. In Python 3, this protocol doesn't exist anymore but the functions are still exposed to ease porting 2.x code. They act as a compatibility wrapper around the [new buffer protocol](buffer.xhtml#bufferobjects), but they don't give you control over the lifetime of the resources acquired when a buffer is exported. Therefore, it is recommended that you call [`PyObject_GetBuffer()`](buffer.xhtml#c.PyObject_GetBuffer "PyObject_GetBuffer")(or the `y*` or `w*` [format codes](arg.xhtml#arg-parsing) with the [`PyArg_ParseTuple()`](arg.xhtml#c.PyArg_ParseTuple "PyArg_ParseTuple") family of functions) to get a buffer view over an object, and [`PyBuffer_Release()`](buffer.xhtml#c.PyBuffer_Release "PyBuffer_Release") when the buffer view can be released. int `PyObject_AsCharBuffer`([PyObject](structures.xhtml#c.PyObject "PyObject") *\*obj*, const char *\*\*buffer*, Py\_ssize\_t *\*buffer\_len*)Returns a pointer to a read-only memory location usable as character-based input. The *obj* argument must support the single-segment character buffer interface. On success, returns `0`, sets *buffer* to the memory location and *buffer\_len* to the buffer length. Returns `-1` and sets a [`TypeError`](../library/exceptions.xhtml#TypeError "TypeError") on error. int `PyObject_AsReadBuffer`([PyObject](structures.xhtml#c.PyObject "PyObject") *\*obj*, const void *\*\*buffer*, Py\_ssize\_t *\*buffer\_len*)Returns a pointer to a read-only memory location containing arbitrary data. The *obj* argument must support the single-segment readable buffer interface. On success, returns `0`, sets *buffer* to the memory location and *buffer\_len* to the buffer length. Returns `-1` and sets a [`TypeError`](../library/exceptions.xhtml#TypeError "TypeError") on error. int `PyObject_CheckReadBuffer`([PyObject](structures.xhtml#c.PyObject "PyObject") *\*o*)Returns `1` if *o* supports the single-segment readable buffer interface. Otherwise returns `0`. This function always succeeds. Note that this function tries to get and release a buffer, and exceptions which occur while calling corresponding functions will get suppressed. To get error reporting use [`PyObject_GetBuffer()`](buffer.xhtml#c.PyObject_GetBuffer "PyObject_GetBuffer") instead. int `PyObject_AsWriteBuffer`([PyObject](structures.xhtml#c.PyObject "PyObject") *\*obj*, void *\*\*buffer*, Py\_ssize\_t *\*buffer\_len*)Returns a pointer to a writable memory location. The *obj* argument must support the single-segment, character buffer interface. On success, returns `0`, sets *buffer* to the memory location and *buffer\_len* to the buffer length. Returns `-1` and sets a [`TypeError`](../library/exceptions.xhtml#TypeError "TypeError") on error. ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](concrete.xhtml "具體的對象層") | - [上一頁](buffer.xhtml "緩沖協議") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python/C API 參考手冊](index.xhtml) ? - [抽象對象層](abstract.xhtml) ? - $('.inline-search').show(0); | ? [版權所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 軟件基金會是一個非盈利組織。 [請捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [發現了問題](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 創建。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看