René's URL Explorer Experiment


Title: Buffer Protocol — Python 3.14.2 documentation

Open Graph Title: Buffer Protocol

Description: Certain objects available in Python wrap access to an underlying memory array or buffer. Such objects include the built-in bytes and bytearray, and some extension types like array.array. Third-part...

Open Graph Description: Certain objects available in Python wrap access to an underlying memory array or buffer. Such objects include the built-in bytes and bytearray, and some extension types like array.array. Third-part...

Opengraph URL: https://docs.python.org/3/c-api/buffer.html

direct link

Domain: docs.python.org

og:typewebsite
og:site_namePython documentation
og:image:width1146
og:image:height600
og:imagehttps://docs.python.org/3.14/_images/social_previews/summary_c-api_buffer_e860fb13.png
og:image:altCertain objects available in Python wrap access to an underlying memory array or buffer. Such objects include the built-in bytes and bytearray, and some extension types like array.array. Third-part...
twitter:cardsummary_large_image
theme-color#3776ab
readthedocs-addons-api-version1

Links:

https://www.python.org/
Table of Contentshttps://docs.python.org/contents.html
Buffer Protocolhttps://docs.python.org/c-api/buffer.html
Buffer structurehttps://docs.python.org/c-api/buffer.html#buffer-structure
Buffer request typeshttps://docs.python.org/c-api/buffer.html#buffer-request-types
request-independent fieldshttps://docs.python.org/c-api/buffer.html#request-independent-fields
readonly, formathttps://docs.python.org/c-api/buffer.html#readonly-format
shape, strides, suboffsetshttps://docs.python.org/c-api/buffer.html#shape-strides-suboffsets
contiguity requestshttps://docs.python.org/c-api/buffer.html#contiguity-requests
compound requestshttps://docs.python.org/c-api/buffer.html#compound-requests
Complex arrayshttps://docs.python.org/c-api/buffer.html#complex-arrays
NumPy-style: shape and strideshttps://docs.python.org/c-api/buffer.html#numpy-style-shape-and-strides
PIL-style: shape, strides and suboffsetshttps://docs.python.org/c-api/buffer.html#pil-style-shape-strides-and-suboffsets
Buffer-related functionshttps://docs.python.org/c-api/buffer.html#buffer-related-functions
Iterator Protocolhttps://docs.python.org/c-api/iter.html
Concrete Objects Layerhttps://docs.python.org/c-api/concrete.html
Report a bughttps://docs.python.org/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/c-api/buffer.rst?plain=1
indexhttps://docs.python.org/genindex.html
moduleshttps://docs.python.org/py-modindex.html
nexthttps://docs.python.org/c-api/concrete.html
previoushttps://docs.python.org/c-api/iter.html
Pythonhttps://www.python.org/
3.14.2 Documentationhttps://docs.python.org/index.html
Python/C API Reference Manualhttps://docs.python.org/c-api/index.html
Abstract Objects Layerhttps://docs.python.org/c-api/abstract.html
Buffer Protocolhttps://docs.python.org/c-api/buffer.html
https://docs.python.org/c-api/buffer.html#buffer-protocol
byteshttps://docs.python.org/library/stdtypes.html#bytes
bytearrayhttps://docs.python.org/library/stdtypes.html#bytearray
array.arrayhttps://docs.python.org/library/array.html#array.array
buffer protocolhttps://docs.python.org/c-api/buffer.html#bufferobjects
Buffer Object Structureshttps://docs.python.org/c-api/typeobj.html#buffer-structs
Emulating buffer typeshttps://docs.python.org/reference/datamodel.html#python-buffer-protocol
memoryviewhttps://docs.python.org/library/stdtypes.html#memoryview
byteshttps://docs.python.org/library/stdtypes.html#bytes
bytearrayhttps://docs.python.org/library/stdtypes.html#bytearray
array.arrayhttps://docs.python.org/library/array.html#array.array
write()https://docs.python.org/library/io.html#io.BufferedIOBase.write
readinto()https://docs.python.org/library/io.html#io.BufferedIOBase.readinto
PyObject_GetBuffer()https://docs.python.org/c-api/buffer.html#c.PyObject_GetBuffer
PyArg_ParseTuple()https://docs.python.org/c-api/arg.html#c.PyArg_ParseTuple
format codeshttps://docs.python.org/c-api/arg.html#arg-parsing
PyBuffer_Release()https://docs.python.org/c-api/buffer.html#c.PyBuffer_Release
Emulating buffer typeshttps://docs.python.org/reference/datamodel.html#python-buffer-protocol
memoryviewhttps://docs.python.org/library/stdtypes.html#memoryview
https://docs.python.org/c-api/buffer.html#buffer-structure
PyObjecthttps://docs.python.org/c-api/structures.html#c.PyObject
memoryviewhttps://docs.python.org/c-api/memoryview.html#memoryview-objects
Buffer Object Structureshttps://docs.python.org/c-api/typeobj.html#buffer-structs
PyObject_GetBuffer()https://docs.python.org/c-api/buffer.html#c.PyObject_GetBuffer
https://docs.python.org/c-api/buffer.html#c.Py_buffer
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.Py_buffer.buf
strideshttps://docs.python.org/c-api/buffer.html#c.Py_buffer.strides
contiguoushttps://docs.python.org/glossary.html#term-contiguous
PyObjecthttps://docs.python.org/c-api/structures.html#c.PyObject
https://docs.python.org/c-api/buffer.html#c.Py_buffer.obj
PyBuffer_Release()https://docs.python.org/c-api/buffer.html#c.PyBuffer_Release
PyMemoryView_FromBuffer()https://docs.python.org/c-api/memoryview.html#c.PyMemoryView_FromBuffer
PyBuffer_FillInfo()https://docs.python.org/c-api/buffer.html#c.PyBuffer_FillInfo
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.Py_buffer.len
PyBUF_SIMPLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_SIMPLE
PyBUF_WRITABLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_WRITABLE
https://docs.python.org/c-api/buffer.html#c.Py_buffer.readonly
PyBUF_WRITABLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_WRITABLE
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.Py_buffer.itemsize
struct.calcsize()https://docs.python.org/library/struct.html#struct.calcsize
formathttps://docs.python.org/c-api/buffer.html#c.Py_buffer.format
PyBUF_FORMAThttps://docs.python.org/c-api/buffer.html#c.PyBUF_FORMAT
formathttps://docs.python.org/c-api/buffer.html#c.Py_buffer.format
itemsizehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.itemsize
shapehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.shape
itemsizehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.itemsize
shapehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.shape
PyBUF_SIMPLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_SIMPLE
PyBUF_WRITABLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_WRITABLE
itemsizehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.itemsize
https://docs.python.org/c-api/buffer.html#c.Py_buffer.format
structhttps://docs.python.org/library/struct.html#module-struct
PyBUF_FORMAThttps://docs.python.org/c-api/buffer.html#c.PyBUF_FORMAT
https://docs.python.org/c-api/buffer.html#c.Py_buffer.ndim
bufhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.buf
shapehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.shape
strideshttps://docs.python.org/c-api/buffer.html#c.Py_buffer.strides
suboffsetshttps://docs.python.org/c-api/buffer.html#c.Py_buffer.suboffsets
PyBUF_MAX_NDIMhttps://docs.python.org/c-api/buffer.html#c.PyBUF_MAX_NDIM
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.Py_buffer.shape
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
ndimhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.ndim
lenhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.len
complex arrayshttps://docs.python.org/c-api/buffer.html#complex-arrays
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.Py_buffer.strides
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
ndimhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.ndim
complex arrayshttps://docs.python.org/c-api/buffer.html#complex-arrays
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.Py_buffer.suboffsets
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
ndimhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.ndim
complex arrayshttps://docs.python.org/c-api/buffer.html#complex-arrays
https://docs.python.org/c-api/buffer.html#c.Py_buffer.internal
https://docs.python.org/c-api/buffer.html#c.PyBUF_MAX_NDIM
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#buffer-request-types
PyObject_GetBuffer()https://docs.python.org/c-api/buffer.html#c.PyObject_GetBuffer
Py_bufferhttps://docs.python.org/c-api/buffer.html#c.Py_buffer
https://docs.python.org/c-api/buffer.html#request-independent-fields
objhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.obj
bufhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.buf
lenhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.len
itemsizehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.itemsize
ndimhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.ndim
https://docs.python.org/c-api/buffer.html#readonly-format
https://docs.python.org/c-api/buffer.html#c.PyBUF_WRITABLE
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
readonlyhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.readonly
PyBUF_SIMPLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_SIMPLE
PyBUF_WRITABLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_WRITABLE
https://docs.python.org/c-api/buffer.html#c.PyBUF_WRITEABLE
soft deprecatedhttps://docs.python.org/glossary.html#term-soft-deprecated
PyBUF_WRITABLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_WRITABLE
https://docs.python.org/c-api/buffer.html#c.PyBUF_FORMAT
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
formathttps://docs.python.org/c-api/buffer.html#c.Py_buffer.format
PyBUF_WRITABLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_WRITABLE
PyBUF_SIMPLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_SIMPLE
PyBUF_WRITABLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_WRITABLE
PyBUF_FORMAThttps://docs.python.org/c-api/buffer.html#c.PyBUF_FORMAT
PyBUF_SIMPLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_SIMPLE
https://docs.python.org/c-api/buffer.html#shape-strides-suboffsets
https://docs.python.org/c-api/buffer.html#c.PyBUF_INDIRECT
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_STRIDES
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_ND
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_SIMPLE
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#contiguity-requests
contiguityhttps://docs.python.org/glossary.html#term-contiguous
https://docs.python.org/c-api/buffer.html#c.PyBUF_C_CONTIGUOUS
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_F_CONTIGUOUS
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_ANY_CONTIGUOUS
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
PyBUF_NDhttps://docs.python.org/c-api/buffer.html#c.PyBUF_ND
https://docs.python.org/c-api/buffer.html#compound-requests
PyBuffer_IsContiguous()https://docs.python.org/c-api/buffer.html#c.PyBuffer_IsContiguous
https://docs.python.org/c-api/buffer.html#c.PyBUF_FULL
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_FULL_RO
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_RECORDS
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_RECORDS_RO
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_STRIDED
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_STRIDED_RO
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_CONTIG
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#c.PyBUF_CONTIG_RO
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
https://docs.python.org/c-api/buffer.html#complex-arrays
https://docs.python.org/c-api/buffer.html#numpy-style-shape-and-strides
itemsizehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.itemsize
ndimhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.ndim
shapehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.shape
strideshttps://docs.python.org/c-api/buffer.html#c.Py_buffer.strides
bufhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.buf
itemsizehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.itemsize
shapehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.shape
strideshttps://docs.python.org/c-api/buffer.html#c.Py_buffer.strides
strideshttps://docs.python.org/c-api/buffer.html#c.Py_buffer.strides
bufhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.buf
https://docs.python.org/c-api/buffer.html#pil-style-shape-strides-and-suboffsets
bufhttps://docs.python.org/c-api/buffer.html#c.Py_buffer.buf
https://docs.python.org/c-api/buffer.html#buffer-related-functions
PyObjecthttps://docs.python.org/c-api/structures.html#c.PyObject
https://docs.python.org/c-api/buffer.html#c.PyObject_CheckBuffer
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
PyObject_GetBuffer()https://docs.python.org/c-api/buffer.html#c.PyObject_GetBuffer
PyObjecthttps://docs.python.org/c-api/structures.html#c.PyObject
Py_bufferhttps://docs.python.org/c-api/buffer.html#c.Py_buffer
https://docs.python.org/c-api/buffer.html#c.PyObject_GetBuffer
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
BufferErrorhttps://docs.python.org/library/exceptions.html#BufferError
Buffer Object Structureshttps://docs.python.org/c-api/typeobj.html#buffer-structs
PyObject_GetBuffer()https://docs.python.org/c-api/buffer.html#c.PyObject_GetBuffer
PyBuffer_Release()https://docs.python.org/c-api/buffer.html#c.PyBuffer_Release
PyBuffer_Release()https://docs.python.org/c-api/buffer.html#c.PyBuffer_Release
Py_bufferhttps://docs.python.org/c-api/buffer.html#c.Py_buffer
https://docs.python.org/c-api/buffer.html#c.PyBuffer_Release
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
strong referencehttps://docs.python.org/glossary.html#term-strong-reference
PyObject_GetBuffer()https://docs.python.org/c-api/buffer.html#c.PyObject_GetBuffer
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.PyBuffer_SizeFromFormat
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
itemsizehttps://docs.python.org/c-api/buffer.html#c.Py_buffer.itemsize
formathttps://docs.python.org/c-api/buffer.html#c.Py_buffer.format
Py_bufferhttps://docs.python.org/c-api/buffer.html#c.Py_buffer
https://docs.python.org/c-api/buffer.html#c.PyBuffer_IsContiguous
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
contiguoushttps://docs.python.org/glossary.html#term-contiguous
Py_bufferhttps://docs.python.org/c-api/buffer.html#c.Py_buffer
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.PyBuffer_GetPointer
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
Py_bufferhttps://docs.python.org/c-api/buffer.html#c.Py_buffer
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.PyBuffer_FromContiguous
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
Py_bufferhttps://docs.python.org/c-api/buffer.html#c.Py_buffer
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.PyBuffer_ToContiguous
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
PyObjecthttps://docs.python.org/c-api/structures.html#c.PyObject
PyObjecthttps://docs.python.org/c-api/structures.html#c.PyObject
https://docs.python.org/c-api/buffer.html#c.PyObject_CopyData
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.PyBuffer_FillContiguousStrides
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
contiguoushttps://docs.python.org/glossary.html#term-contiguous
Py_bufferhttps://docs.python.org/c-api/buffer.html#c.Py_buffer
PyObjecthttps://docs.python.org/c-api/structures.html#c.PyObject
Py_ssize_thttps://docs.python.org/c-api/intro.html#c.Py_ssize_t
https://docs.python.org/c-api/buffer.html#c.PyBuffer_FillInfo
Stable ABIhttps://docs.python.org/c-api/stable.html#stable
PyBUF_WRITABLEhttps://docs.python.org/c-api/buffer.html#c.PyBUF_WRITABLE
BufferErrorhttps://docs.python.org/library/exceptions.html#BufferError
getbufferprochttps://docs.python.org/c-api/typeobj.html#buffer-structs
Table of Contentshttps://docs.python.org/contents.html
Buffer Protocolhttps://docs.python.org/c-api/buffer.html
Buffer structurehttps://docs.python.org/c-api/buffer.html#buffer-structure
Buffer request typeshttps://docs.python.org/c-api/buffer.html#buffer-request-types
request-independent fieldshttps://docs.python.org/c-api/buffer.html#request-independent-fields
readonly, formathttps://docs.python.org/c-api/buffer.html#readonly-format
shape, strides, suboffsetshttps://docs.python.org/c-api/buffer.html#shape-strides-suboffsets
contiguity requestshttps://docs.python.org/c-api/buffer.html#contiguity-requests
compound requestshttps://docs.python.org/c-api/buffer.html#compound-requests
Complex arrayshttps://docs.python.org/c-api/buffer.html#complex-arrays
NumPy-style: shape and strideshttps://docs.python.org/c-api/buffer.html#numpy-style-shape-and-strides
PIL-style: shape, strides and suboffsetshttps://docs.python.org/c-api/buffer.html#pil-style-shape-strides-and-suboffsets
Buffer-related functionshttps://docs.python.org/c-api/buffer.html#buffer-related-functions
Iterator Protocolhttps://docs.python.org/c-api/iter.html
Concrete Objects Layerhttps://docs.python.org/c-api/concrete.html
Report a bughttps://docs.python.org/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/c-api/buffer.rst?plain=1
indexhttps://docs.python.org/genindex.html
moduleshttps://docs.python.org/py-modindex.html
nexthttps://docs.python.org/c-api/concrete.html
previoushttps://docs.python.org/c-api/iter.html
Pythonhttps://www.python.org/
3.14.2 Documentationhttps://docs.python.org/index.html
Python/C API Reference Manualhttps://docs.python.org/c-api/index.html
Abstract Objects Layerhttps://docs.python.org/c-api/abstract.html
Buffer Protocolhttps://docs.python.org/c-api/buffer.html
Copyrighthttps://docs.python.org/copyright.html
History and Licensehttps://docs.python.org/license.html
Please donate.https://www.python.org/psf/donations/
Found a bughttps://docs.python.org/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.