Home
last modified time | relevance | path

Searched refs:Py_buffer (Results 1 – 25 of 143) sorted by relevance

123456

/external/python/cpython3/Modules/clinic/
Daudioop.c.h15 audioop_getsample_impl(PyObject *module, Py_buffer *fragment, int width,
22 Py_buffer fragment = {NULL, NULL}; in audioop_getsample()
73 audioop_max_impl(PyObject *module, Py_buffer *fragment, int width);
79 Py_buffer fragment = {NULL, NULL}; in audioop_max()
117 audioop_minmax_impl(PyObject *module, Py_buffer *fragment, int width);
123 Py_buffer fragment = {NULL, NULL}; in audioop_minmax()
161 audioop_avg_impl(PyObject *module, Py_buffer *fragment, int width);
167 Py_buffer fragment = {NULL, NULL}; in audioop_avg()
205 audioop_rms_impl(PyObject *module, Py_buffer *fragment, int width);
211 Py_buffer fragment = {NULL, NULL}; in audioop_rms()
[all …]
Dbinascii.c.h15 binascii_a2b_uu_impl(PyObject *module, Py_buffer *data);
21 Py_buffer data = {NULL, NULL}; in binascii_a2b_uu()
46 binascii_b2a_uu_impl(PyObject *module, Py_buffer *data, int backtick);
56 Py_buffer data = {NULL, NULL}; in binascii_b2a_uu()
99 binascii_a2b_base64_impl(PyObject *module, Py_buffer *data);
105 Py_buffer data = {NULL, NULL}; in binascii_a2b_base64()
130 binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline);
140 Py_buffer data = {NULL, NULL}; in binascii_b2a_base64()
183 binascii_a2b_hqx_impl(PyObject *module, Py_buffer *data);
189 Py_buffer data = {NULL, NULL}; in binascii_a2b_hqx()
[all …]
D_struct.c.h56 Struct_unpack_impl(PyStructObject *self, Py_buffer *buffer);
62 Py_buffer buffer = {NULL, NULL}; in Struct_unpack()
99 Struct_unpack_from_impl(PyStructObject *self, Py_buffer *buffer,
110 Py_buffer buffer = {NULL, NULL}; in Struct_unpack_from()
232 unpack_impl(PyObject *module, PyStructObject *s_object, Py_buffer *buffer);
239 Py_buffer buffer = {NULL, NULL}; in unpack()
282 Py_buffer *buffer, Py_ssize_t offset);
293 Py_buffer buffer = {NULL, NULL}; in unpack_from()
Dzlibmodule.c.h20 zlib_compress_impl(PyObject *module, Py_buffer *data, int level);
30 Py_buffer data = {NULL, NULL}; in zlib_compress()
80 zlib_decompress_impl(PyObject *module, Py_buffer *data, int wbits,
91 Py_buffer data = {NULL, NULL}; in zlib_decompress()
177 int memLevel, int strategy, Py_buffer *zdict);
192 Py_buffer zdict = {NULL, NULL}; in zlib_compressobj()
336 Py_buffer *data);
344 Py_buffer data = {NULL, NULL}; in zlib_Compress_compress()
383 Py_buffer *data, Py_ssize_t max_length);
391 Py_buffer data = {NULL, NULL}; in zlib_Decompress_decompress()
[all …]
D_codecsmodule.c.h229 _codecs_escape_decode_impl(PyObject *module, Py_buffer *data,
236 Py_buffer data = {NULL, NULL}; in _codecs_escape_decode()
356 _codecs_utf_7_decode_impl(PyObject *module, Py_buffer *data,
363 Py_buffer data = {NULL, NULL}; in _codecs_utf_7_decode()
426 _codecs_utf_8_decode_impl(PyObject *module, Py_buffer *data,
433 Py_buffer data = {NULL, NULL}; in _codecs_utf_8_decode()
496 _codecs_utf_16_decode_impl(PyObject *module, Py_buffer *data,
503 Py_buffer data = {NULL, NULL}; in _codecs_utf_16_decode()
566 _codecs_utf_16_le_decode_impl(PyObject *module, Py_buffer *data,
573 Py_buffer data = {NULL, NULL}; in _codecs_utf_16_le_decode()
[all …]
D_lzmamodule.c.h20 _lzma_LZMACompressor_compress_impl(Compressor *self, Py_buffer *data);
26 Py_buffer data = {NULL, NULL}; in _lzma_LZMACompressor_compress()
91 _lzma_LZMADecompressor_decompress_impl(Decompressor *self, Py_buffer *data,
102 Py_buffer data = {NULL, NULL}; in _lzma_LZMADecompressor_decompress()
257 Py_buffer *encoded_props);
264 Py_buffer encoded_props = {NULL, NULL}; in _lzma__decode_filter_properties()
D_bz2module.c.h20 _bz2_BZ2Compressor_compress_impl(BZ2Compressor *self, Py_buffer *data);
26 Py_buffer data = {NULL, NULL}; in _bz2_BZ2Compressor_compress()
91 _bz2_BZ2Decompressor_decompress_impl(BZ2Decompressor *self, Py_buffer *data,
102 Py_buffer data = {NULL, NULL}; in _bz2_BZ2Decompressor_decompress()
/external/python/cpython3/Modules/
D_codecsmodule.c181 _codecs_escape_decode_impl(PyObject *module, Py_buffer *data, in _codecs_escape_decode_impl()
263 _codecs_utf_7_decode_impl(PyObject *module, Py_buffer *data, in _codecs_utf_7_decode_impl()
283 _codecs_utf_8_decode_impl(PyObject *module, Py_buffer *data, in _codecs_utf_8_decode_impl()
303 _codecs_utf_16_decode_impl(PyObject *module, Py_buffer *data, in _codecs_utf_16_decode_impl()
325 _codecs_utf_16_le_decode_impl(PyObject *module, Py_buffer *data, in _codecs_utf_16_le_decode_impl()
347 _codecs_utf_16_be_decode_impl(PyObject *module, Py_buffer *data, in _codecs_utf_16_be_decode_impl()
377 _codecs_utf_16_ex_decode_impl(PyObject *module, Py_buffer *data, in _codecs_utf_16_ex_decode_impl()
401 _codecs_utf_32_decode_impl(PyObject *module, Py_buffer *data, in _codecs_utf_32_decode_impl()
423 _codecs_utf_32_le_decode_impl(PyObject *module, Py_buffer *data, in _codecs_utf_32_le_decode_impl()
445 _codecs_utf_32_be_decode_impl(PyObject *module, Py_buffer *data, in _codecs_utf_32_be_decode_impl()
[all …]
Daudioop.c423 audioop_getsample_impl(PyObject *module, Py_buffer *fragment, int width, in audioop_getsample_impl()
451 audioop_max_impl(PyObject *module, Py_buffer *fragment, int width) in audioop_max_impl()
481 audioop_minmax_impl(PyObject *module, Py_buffer *fragment, int width) in audioop_minmax_impl()
510 audioop_avg_impl(PyObject *module, Py_buffer *fragment, int width) in audioop_avg_impl()
539 audioop_rms_impl(PyObject *module, Py_buffer *fragment, int width) in audioop_rms_impl()
613 audioop_findfit_impl(PyObject *module, Py_buffer *fragment, in audioop_findfit_impl()
614 Py_buffer *reference) in audioop_findfit_impl()
684 audioop_findfactor_impl(PyObject *module, Py_buffer *fragment, in audioop_findfactor_impl()
685 Py_buffer *reference) in audioop_findfactor_impl()
728 audioop_findmax_impl(PyObject *module, Py_buffer *fragment, in audioop_findmax_impl()
[all …]
D_testbuffer.c97 Py_buffer base; /* base buffer */
112 Py_buffer *base; in ndbuf_new()
166 Py_buffer *base = &ndbuf->base; in ndbuf_free()
226 Py_buffer *base = &self->head->base; in ndarray_dealloc()
245 Py_buffer *base = &nd->staticbuf.base; in ndarray_init_staticbuf()
514 cmp_structure(Py_buffer *dest, Py_buffer *src) in cmp_structure()
537 copy_buffer(Py_buffer *dest, Py_buffer *src) in copy_buffer()
662 Py_buffer *base = &nd->head->base; in ndarray_as_list()
826 Py_buffer *base = &ndbuf->base; in init_simple()
889 const Py_buffer *base = &ndbuf->base; in strides_from_shape()
[all …]
Dbinascii.c225 ascii_buffer_converter(PyObject *arg, Py_buffer *buf) in ascii_buffer_converter()
273 binascii_a2b_uu_impl(PyObject *module, Py_buffer *data) in binascii_a2b_uu_impl()
371 binascii_b2a_uu_impl(PyObject *module, Py_buffer *data, int backtick) in binascii_b2a_uu_impl()
441 binascii_a2b_base64_impl(PyObject *module, Py_buffer *data) in binascii_a2b_base64_impl()
546 binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline) in binascii_b2a_base64_impl()
619 binascii_a2b_hqx_impl(PyObject *module, Py_buffer *data) in binascii_a2b_hqx_impl()
712 binascii_rlecode_hqx_impl(PyObject *module, Py_buffer *data) in binascii_rlecode_hqx_impl()
779 binascii_b2a_hqx_impl(PyObject *module, Py_buffer *data) in binascii_b2a_hqx_impl()
839 binascii_rledecode_hqx_impl(PyObject *module, Py_buffer *data) in binascii_rledecode_hqx_impl()
971 binascii_crc_hqx_impl(PyObject *module, Py_buffer *data, unsigned int crc) in binascii_crc_hqx_impl()
[all …]
/external/python/cpython3/Doc/c-api/
Dbuffer.rst90 .. c:type:: Py_buffer
96 block of the exporter. For example, with negative :c:member:`~Py_buffer.strides`
133 called on non-``NULL`` :c:member:`~Py_buffer.format` values.
136 :c:macro:`PyBUF_FORMAT` flag, :c:member:`~Py_buffer.format` will
137 be set to ``NULL``, but :c:member:`~Py_buffer.itemsize` still has
140 If :c:member:`~Py_buffer.shape` is present, the equality
142 can use :c:member:`~Py_buffer.itemsize` to navigate the buffer.
144 If :c:member:`~Py_buffer.shape` is ``NULL`` as a result of a :c:macro:`PyBUF_SIMPLE`
146 :c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``.
159 If it is ``0``, :c:member:`~Py_buffer.buf` points to a single item representing
[all …]
/external/python/cpython3/Objects/
Dmemoryobject.c259 last_dim_is_contiguous(const Py_buffer *dest, const Py_buffer *src) in last_dim_is_contiguous()
275 equiv_format(const Py_buffer *dest, const Py_buffer *src) in equiv_format()
295 equiv_shape(const Py_buffer *dest, const Py_buffer *src) in equiv_shape()
315 equiv_structure(const Py_buffer *dest, const Py_buffer *src) in equiv_structure()
392 copy_single(Py_buffer *dest, Py_buffer *src) in copy_single()
424 copy_buffer(Py_buffer *dest, Py_buffer *src) in copy_buffer()
454 init_strides_from_shape(Py_buffer *view) in init_strides_from_shape()
467 init_fortran_strides_from_shape(Py_buffer *view) in init_fortran_strides_from_shape()
482 buffer_to_contiguous(char *mem, Py_buffer *src, char order) in buffer_to_contiguous()
484 Py_buffer dest; in buffer_to_contiguous()
[all …]
Dpicklebufobject.c10 Py_buffer view;
35 const Py_buffer *
121 picklebuf_getbuf(PyPickleBufferObject *self, Py_buffer *view, int flags) in picklebuf_getbuf()
132 picklebuf_releasebuf(PyPickleBufferObject *self, Py_buffer *view) in picklebuf_releasebuf()
/external/python/cpython2/Objects/
Dmemoryobject.c7 get_shape0(Py_buffer *buf) in get_shape0()
20 dup_buffer(Py_buffer *dest, Py_buffer *src) in dup_buffer()
34 memory_getbuf(PyMemoryViewObject *self, Py_buffer *view, int flags) in memory_getbuf()
45 memory_releasebuf(PyMemoryViewObject *self, Py_buffer *view) in memory_releasebuf()
56 PyMemoryView_FromBuffer(Py_buffer *info) in PyMemoryView_FromBuffer()
76 Py_buffer view; in PyMemoryView_FromObject()
173 _indirect_copy_nd(char *dest, Py_buffer *view, char fort) in _indirect_copy_nd()
244 Py_buffer *view; in PyMemoryView_GetContiguous()
408 Py_buffer view; in memory_tobytes()
426 Py_buffer *view = &(mem->view); in memory_tolist()
[all …]
/external/python/cpython3/Objects/clinic/
Dbytesobject.c.h85 bytes_partition_impl(PyBytesObject *self, Py_buffer *sep);
91 Py_buffer sep = {NULL, NULL}; in bytes_partition()
128 bytes_rpartition_impl(PyBytesObject *self, Py_buffer *sep);
134 Py_buffer sep = {NULL, NULL}; in bytes_rpartition()
397 bytes_maketrans_impl(Py_buffer *frm, Py_buffer *to);
403 Py_buffer frm = {NULL, NULL}; in bytes_maketrans()
404 Py_buffer to = {NULL, NULL}; in bytes_maketrans()
455 bytes_replace_impl(PyBytesObject *self, Py_buffer *old, Py_buffer *new,
462 Py_buffer old = {NULL, NULL}; in bytes_replace()
463 Py_buffer new = {NULL, NULL}; in bytes_replace()
[all …]
Dbytearrayobject.c.h124 bytearray_removeprefix_impl(PyByteArrayObject *self, Py_buffer *prefix);
130 Py_buffer prefix = {NULL, NULL}; in bytearray_removeprefix()
164 bytearray_removesuffix_impl(PyByteArrayObject *self, Py_buffer *suffix);
170 Py_buffer suffix = {NULL, NULL}; in bytearray_removesuffix()
251 bytearray_maketrans_impl(Py_buffer *frm, Py_buffer *to);
257 Py_buffer frm = {NULL, NULL}; in bytearray_maketrans()
258 Py_buffer to = {NULL, NULL}; in bytearray_maketrans()
309 bytearray_replace_impl(PyByteArrayObject *self, Py_buffer *old,
310 Py_buffer *new, Py_ssize_t count);
316 Py_buffer old = {NULL, NULL}; in bytearray_replace()
[all …]
/external/python/cpython3/Modules/_blake2/clinic/
Dblake2b_impl.c.h16 Py_buffer *key, Py_buffer *salt, Py_buffer *person,
33 Py_buffer key = {NULL, NULL}; in py_blake2b_new()
34 Py_buffer salt = {NULL, NULL}; in py_blake2b_new()
35 Py_buffer person = {NULL, NULL}; in py_blake2b_new()
Dblake2s_impl.c.h16 Py_buffer *key, Py_buffer *salt, Py_buffer *person,
33 Py_buffer key = {NULL, NULL}; in py_blake2s_new()
34 Py_buffer salt = {NULL, NULL}; in py_blake2s_new()
35 Py_buffer person = {NULL, NULL}; in py_blake2s_new()
/external/python/cpython3/Include/cpython/
Dabstract.h270 PyAPI_FUNC(int) PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
275 PyAPI_FUNC(void *) PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices);
282 PyAPI_FUNC(int) PyBuffer_ToContiguous(void *buf, Py_buffer *view,
285 PyAPI_FUNC(int) PyBuffer_FromContiguous(Py_buffer *view, void *buf,
304 PyAPI_FUNC(int) PyBuffer_IsContiguous(const Py_buffer *view, char fort);
321 PyAPI_FUNC(int) PyBuffer_FillInfo(Py_buffer *view, PyObject *o, void *buf,
326 PyAPI_FUNC(void) PyBuffer_Release(Py_buffer *view);
/external/python/cpython3/Modules/_io/clinic/
Dbufferedio.c.h14 _io__BufferedIOBase_readinto_impl(PyObject *self, Py_buffer *buffer);
20 Py_buffer buffer = {NULL, NULL}; in _io__BufferedIOBase_readinto()
51 _io__BufferedIOBase_readinto1_impl(PyObject *self, Py_buffer *buffer);
57 Py_buffer buffer = {NULL, NULL}; in _io__BufferedIOBase_readinto1()
226 _io__Buffered_readinto_impl(buffered *self, Py_buffer *buffer);
232 Py_buffer buffer = {NULL, NULL}; in _io__Buffered_readinto()
263 _io__Buffered_readinto1_impl(buffered *self, Py_buffer *buffer);
269 Py_buffer buffer = {NULL, NULL}; in _io__Buffered_readinto1()
504 _io_BufferedWriter_write_impl(buffered *self, Py_buffer *buffer);
510 Py_buffer buffer = {NULL, NULL}; in _io_BufferedWriter_write()
/external/python/cpython2/Modules/
D_codecsmodule.c236 Py_buffer pbuf; in utf_7_decode()
259 Py_buffer pbuf; in utf_8_decode()
282 Py_buffer pbuf; in utf_16_decode()
305 Py_buffer pbuf; in utf_16_le_decode()
329 Py_buffer pbuf; in utf_16_be_decode()
361 Py_buffer pbuf; in utf_16_ex_decode()
386 Py_buffer pbuf; in utf_32_decode()
409 Py_buffer pbuf; in utf_32_le_decode()
432 Py_buffer pbuf; in utf_32_be_decode()
463 Py_buffer pbuf; in utf_32_ex_decode()
[all …]
Dbinascii.c191 Py_buffer pascii; in binascii_a2b_uu()
277 Py_buffer pbin; in binascii_b2a_uu()
362 Py_buffer pascii; in binascii_a2b_base64()
469 Py_buffer pbuf; in binascii_b2a_base64()
534 Py_buffer pascii; in binascii_a2b_hqx()
617 Py_buffer pbuf; in binascii_rlecode_hqx()
679 Py_buffer pbin; in binascii_b2a_hqx()
734 Py_buffer pin; in binascii_rledecode_hqx()
850 Py_buffer pin; in binascii_crc_hqx()
877 Py_buffer pbuf; in binascii_crc32()
[all …]
/external/python/cpython3/Include/
Dmemoryobject.h29 PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(Py_buffer *info);
46 Py_buffer master; /* snapshot buffer obtained from the original exporter */
63 Py_buffer view; /* private copy of the exporter's view */
/external/python/cpython2/Include/
Dabstract.h542 PyAPI_FUNC(int) PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
552 PyAPI_FUNC(void *) PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices);
565 PyAPI_FUNC(int) PyBuffer_ToContiguous(void *buf, Py_buffer *view,
568 PyAPI_FUNC(int) PyBuffer_FromContiguous(Py_buffer *view, void *buf,
593 PyAPI_FUNC(int) PyBuffer_IsContiguous(Py_buffer *view, char fort);
608 PyAPI_FUNC(int) PyBuffer_FillInfo(Py_buffer *view, PyObject *o, void *buf,
618 PyAPI_FUNC(void) PyBuffer_Release(Py_buffer *view);

123456