Home
last modified time | relevance | path

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

12345

/third_party/python/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 …]
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_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()
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()
D_hashopenssl.c.h881 Py_buffer *password, Py_buffer *salt, long iterations,
893 Py_buffer password = {NULL, NULL}; in pbkdf2_hmac()
894 Py_buffer salt = {NULL, NULL}; in pbkdf2_hmac()
966 _hashlib_scrypt_impl(PyObject *module, Py_buffer *password, Py_buffer *salt,
978 Py_buffer password = {NULL, NULL}; in _hashlib_scrypt()
979 Py_buffer salt = {NULL, NULL}; in _hashlib_scrypt()
1083 _hashlib_hmac_singleshot_impl(PyObject *module, Py_buffer *key,
1084 Py_buffer *msg, PyObject *digest);
1093 Py_buffer key = {NULL, NULL}; in _hashlib_hmac_singleshot()
1094 Py_buffer msg = {NULL, NULL}; in _hashlib_hmac_singleshot()
[all …]
/third_party/python/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.c430 audioop_getsample_impl(PyObject *module, Py_buffer *fragment, int width, in audioop_getsample_impl()
458 audioop_max_impl(PyObject *module, Py_buffer *fragment, int width) in audioop_max_impl()
488 audioop_minmax_impl(PyObject *module, Py_buffer *fragment, int width) in audioop_minmax_impl()
517 audioop_avg_impl(PyObject *module, Py_buffer *fragment, int width) in audioop_avg_impl()
546 audioop_rms_impl(PyObject *module, Py_buffer *fragment, int width) in audioop_rms_impl()
620 audioop_findfit_impl(PyObject *module, Py_buffer *fragment, in audioop_findfit_impl()
621 Py_buffer *reference) in audioop_findfit_impl()
691 audioop_findfactor_impl(PyObject *module, Py_buffer *fragment, in audioop_findfactor_impl()
692 Py_buffer *reference) in audioop_findfactor_impl()
735 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 …]
/third_party/python/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 …]
/third_party/python/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()
Dbytearrayobject.c43 bytearray_getbuffer(PyByteArrayObject *obj, Py_buffer *view, int flags) in bytearray_getbuffer()
59 bytearray_releasebuffer(PyByteArrayObject *obj, Py_buffer *view) in bytearray_releasebuffer()
89 Py_buffer view; in _PyByteArray_FromBufferObject()
249 Py_buffer va, vb; in PyByteArray_Concat()
295 Py_buffer vo; in bytearray_iconcat()
533 Py_buffer vbytes; in bytearray_setslice()
832 Py_buffer view; in bytearray___init___impl()
1008 Py_buffer self_bytes, other_bytes; in bytearray_richcompare()
1190 bytearray_removeprefix_impl(PyByteArrayObject *self, Py_buffer *prefix) in bytearray_removeprefix_impl()
1222 bytearray_removesuffix_impl(PyByteArrayObject *self, Py_buffer *suffix) in bytearray_removesuffix_impl()
[all …]
/third_party/python/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 …]
/third_party/python/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()
/third_party/python/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()
/third_party/python/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);
/third_party/python/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 */
/third_party/python/Modules/_blake2/
Dblake2b_impl.c90 Py_buffer *key, Py_buffer *salt, Py_buffer *person, in py_blake2b_new_impl()
97 Py_buffer buf; in py_blake2b_new_impl()
275 Py_buffer buf; in _blake2_blake2b_update()
Dblake2s_impl.c89 Py_buffer *key, Py_buffer *salt, Py_buffer *person, in py_blake2s_new_impl()
96 Py_buffer buf; in py_blake2s_new_impl()
274 Py_buffer buf; in _blake2_blake2s_update()

12345