Home
last modified time | relevance | path

Searched refs:_PyBytes_Resize (Results 1 – 25 of 36) sorted by relevance

12

/external/python/cpython3/Modules/
Dzlibmodule.c165 if (_PyBytes_Resize(buffer, new_length) < 0) in arrange_output_buffer_with_maximum()
266 if (_PyBytes_Resize(&RetVal, zst.next_out - in zlib_compress_impl()
410 if (_PyBytes_Resize(&RetVal, zst.next_out - in zlib_decompress_impl()
681 if (_PyBytes_Resize(&RetVal, self->zst.next_out - in zlib_Compress_compress_impl()
837 if (_PyBytes_Resize(&RetVal, self->zst.next_out - in zlib_Decompress_decompress_impl()
921 if (_PyBytes_Resize(&RetVal, self->zst.next_out - in zlib_Compress_flush_impl()
1123 if (_PyBytes_Resize(&RetVal, self->zst.next_out - in zlib_Decompress_flush_impl()
D_bz2module.c129 return _PyBytes_Resize(buf, new_size); in grow_buffer()
193 if (_PyBytes_Resize(&result, data_size) < 0) in compress()
456 if (_PyBytes_Resize(&result, data_size) == -1) in decompress_buf()
D_lzmamodule.c139 return _PyBytes_Resize(buf, newsize); in grow_buffer()
529 if (_PyBytes_Resize(&result, data_size) == -1) in compress()
923 if (_PyBytes_Resize(&result, data_size) == -1) in decompress_buf()
D_winapi.c230 _PyBytes_Resize(&self->read_buffer, transferred)) in _winapi_Overlapped_GetOverlappedResult_impl()
1355 if (_PyBytes_Resize(&buf, nread)) in _winapi_PeekNamedPipe_impl()
1425 if (_PyBytes_Resize(&buf, nread)) in _winapi_ReadFile_impl()
D_codecsmodule.c244 if (_PyBytes_Resize(&v, (p - PyBytes_AS_STRING(v)))) { in _codecs_escape_encode_impl()
Dossaudiodev.c425 _PyBytes_Resize(&rv, count); in oss_read()
/external/python/cpython2/Include/
Dbytesobject.h20 #define _PyBytes_Resize _PyString_Resize macro
/external/python/cpython3/Modules/_io/
Dfileio.c733 if (_PyBytes_Resize(&result, bufsize) < 0)
760 if (_PyBytes_Resize(&result, bytes_read) < 0)
816 if (_PyBytes_Resize(&bytes, n) < 0) {
Dbytesio.c145 if (_PyBytes_Resize(&self->buf, alloc) < 0) in resize_buffer()
317 if (_PyBytes_Resize(&self->buf, self->string_size) < 0) in _io_BytesIO_getvalue_impl()
Dwinconsoleio.c890 if (_PyBytes_Resize(&bytes, n * sizeof(wchar_t)) < 0) { in _io__WindowsConsoleIO_readall_impl()
940 if (_PyBytes_Resize(&bytes, bytes_size) < 0) { in _io__WindowsConsoleIO_read_impl()
Dbufferedio.c966 _PyBytes_Resize(&res, r); in _io__Buffered_read1_impl()
1673 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
1697 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
/external/python/cpython3/Include/
Dbytesobject.h64 PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t);
/external/python/cpython2/Modules/_io/
Dfileio.c601 if (_PyBytes_Resize(&result, newsize) < 0) in fileio_readall()
643 if (_PyBytes_Resize(&result, total) < 0) { in fileio_readall()
701 if (_PyBytes_Resize(&bytes, n) < 0) in fileio_read()
Dbufferedio.c1475 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
1500 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
/external/python/cpython3/Modules/_multiprocessing/
Dmultiprocessing.c93 _PyBytes_Resize(&buf, nread); in multiprocessing_recv()
/external/python/cpython3/Objects/
Dfileobject.c86 _PyBytes_Resize(&result, len-1); in PyFile_GetLine()
Dbytesobject.c2205 _PyBytes_Resize(&result, output - output_start); in bytes_translate_impl()
2943 if (_PyBytes_Resize(pv, oldsize + wb.len) < 0) in PyBytes_Concat()
2987 _PyBytes_Resize(PyObject **pv, Py_ssize_t newsize) in _PyBytes_Resize() function
3317 if (_PyBytes_Resize(&writer->buffer, allocated)) in _PyBytesWriter_Resize()
3453 if (_PyBytes_Resize(&result, size)) { in _PyBytesWriter_Finish()
Dunicodeobject.c4697 if (_PyBytes_Resize(&v, out - start) < 0) in _PyUnicode_EncodeUTF7()
5500 if (_PyBytes_Resize(&v, PyBytes_GET_SIZE(v) + 4 * (moreunits - 1)) < 0) in _PyUnicode_EncodeUTF32()
5522 _PyBytes_Resize(&v, nsize); in _PyUnicode_EncodeUTF32()
5852 if (_PyBytes_Resize(&v, PyBytes_GET_SIZE(v) + 2 * (moreunits - 1)) < 0) in _PyUnicode_EncodeUTF16()
5874 _PyBytes_Resize(&v, nsize); in _PyUnicode_EncodeUTF16()
6273 if (_PyBytes_Resize(&repr, p - PyBytes_AS_STRING(repr)) < 0) { in PyUnicode_AsUnicodeEscapeString()
6488 if (_PyBytes_Resize(&repr, p - PyBytes_AS_STRING(repr)) < 0) { in PyUnicode_AsRawUnicodeEscapeString()
7487 if (_PyBytes_Resize(outbytes, n + outsize) < 0) { in encode_code_page_strict()
7588 if (_PyBytes_Resize(outbytes, n + outsize) < 0) in encode_code_page_errors()
7640 if (_PyBytes_Resize(outbytes, newoutsize) < 0) { in encode_code_page_errors()
[all …]
/external/python/cpython2/Objects/
Dbytesobject.c2212 _PyBytes_Resize(&result, output - output_start); in bytes_translate_impl()
2911 if (_PyBytes_Resize(pv, oldsize + wb.len) < 0) in PyBytes_Concat()
2955 _PyBytes_Resize(PyObject **pv, Py_ssize_t newsize) in _PyBytes_Resize() function
3272 if (_PyBytes_Resize(&writer->buffer, allocated)) in _PyBytesWriter_Resize()
3408 if (_PyBytes_Resize(&result, size)) { in _PyBytesWriter_Finish()
/external/python/cpython2/Modules/
Dzlibmodule.c169 if (_PyBytes_Resize(buffer, new_length) < 0) in arrange_output_buffer_with_maximum()
267 if (_PyBytes_Resize(&RetVal, zst.next_out - in PyZlib_compress()
/external/python/cpython3/Doc/c-api/
Dbytes.rst194 .. c:function:: int _PyBytes_Resize(PyObject **bytes, Py_ssize_t newsize)
/external/python/cpython3/Python/
Dmarshal.c128 if (_PyBytes_Resize(&p->str, size) != 0) { in w_reserve()
1639 if (_PyBytes_Resize(&wf.str, (Py_ssize_t)(wf.ptr - base)) < 0) in PyMarshal_WriteObjectToString()
Dcompile.c5155 if (_PyBytes_Resize(&a->a_lnotab, len) < 0) in assemble_lnotab()
5193 if (_PyBytes_Resize(&a->a_lnotab, len) < 0) in assemble_lnotab()
5211 if (_PyBytes_Resize(&a->a_lnotab, len * 2) < 0) in assemble_lnotab()
5250 if (_PyBytes_Resize(&a->a_bytecode, len * 2) < 0) in assemble_emit()
5527 if (_PyBytes_Resize(&a.a_lnotab, a.a_lnotab_off) < 0) in assemble()
5529 if (_PyBytes_Resize(&a.a_bytecode, a.a_offset * sizeof(_Py_CODEUNIT)) < 0) in assemble()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c181 if (_PyBytes_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer()
533 if (_PyBytes_Resize(&buf.outobj, finalsize) == -1) in multibytecodec_encode()
/external/python/cpython3/Doc/data/
Drefcounts.dat3022 _PyBytes_Resize:int:::
3023 _PyBytes_Resize:PyObject**:bytes:0:
3024 _PyBytes_Resize:Py_ssize_t:newsize::

12