Home
last modified time | relevance | path

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

12

/external/python/cpython2/Include/
Dbytesobject.h20 #define _PyBytes_Resize _PyString_Resize macro
/external/python/cpython3/Modules/
Dzlibmodule.c177 if (_PyBytes_Resize(buffer, new_length) < 0) in arrange_output_buffer_with_maximum()
278 if (_PyBytes_Resize(&RetVal, zst.next_out - in zlib_compress_impl()
424 if (_PyBytes_Resize(&RetVal, zst.next_out - in zlib_decompress_impl()
697 if (_PyBytes_Resize(&RetVal, self->zst.next_out - in zlib_Compress_compress_impl()
853 if (_PyBytes_Resize(&RetVal, self->zst.next_out - in zlib_Decompress_decompress_impl()
937 if (_PyBytes_Resize(&RetVal, self->zst.next_out - in zlib_Compress_flush_impl()
1192 if (_PyBytes_Resize(&RetVal, self->zst.next_out - in zlib_Decompress_flush_impl()
D_bz2module.c127 return _PyBytes_Resize(buf, new_size); in grow_buffer()
191 if (_PyBytes_Resize(&result, data_size) < 0) in compress()
445 if (_PyBytes_Resize(&result, data_size) == -1) in decompress_buf()
D_lzmamodule.c138 return _PyBytes_Resize(buf, newsize); in grow_buffer()
525 if (_PyBytes_Resize(&result, data_size) == -1) in compress()
914 if (_PyBytes_Resize(&result, data_size) == -1) in decompress_buf()
D_winapi.c241 _PyBytes_Resize(&self->read_buffer, transferred)) in _winapi_Overlapped_GetOverlappedResult_impl()
1491 if (_PyBytes_Resize(&buf, nread)) in _winapi_PeekNamedPipe_impl()
1561 if (_PyBytes_Resize(&buf, nread)) in _winapi_ReadFile_impl()
D_codecsmodule.c243 if (_PyBytes_Resize(&v, (p - PyBytes_AS_STRING(v)))) { in _codecs_escape_encode_impl()
Doverlapped.c809 _PyBytes_Resize(&self->allocated_buffer, transferred)) in Overlapped_getresult()
819 _PyBytes_Resize(&self->read_from.allocated_buffer, transferred)) in Overlapped_getresult()
Dossaudiodev.c423 _PyBytes_Resize(&rv, count); in oss_read()
/external/python/cpython3/Include/cpython/
Dbytesobject.h17 PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t);
/external/python/cpython3/Modules/_io/
Dfileio.c739 if (_PyBytes_Resize(&result, bufsize) < 0)
766 if (_PyBytes_Resize(&result, bytes_read) < 0)
822 if (_PyBytes_Resize(&bytes, n) < 0) {
Dbytesio.c163 if (_PyBytes_Resize(&self->buf, alloc) < 0) in resize_buffer()
355 if (_PyBytes_Resize(&self->buf, self->string_size) < 0) in _io_BytesIO_getvalue_impl()
Dwinconsoleio.c891 if (_PyBytes_Resize(&bytes, n * sizeof(wchar_t)) < 0) { in _io__WindowsConsoleIO_readall_impl()
941 if (_PyBytes_Resize(&bytes, bytes_size) < 0) { in _io__WindowsConsoleIO_read_impl()
Dbufferedio.c954 _PyBytes_Resize(&res, r); in _io__Buffered_read1_impl()
1668 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
1692 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/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/Objects/
Dfileobject.c89 _PyBytes_Resize(&result, len-1); in PyFile_GetLine()
Dbytesobject.c2127 _PyBytes_Resize(&result, output - output_start); in bytes_translate_impl()
2956 if (_PyBytes_Resize(pv, oldsize + wb.len) < 0) in PyBytes_Concat()
3000 _PyBytes_Resize(PyObject **pv, Py_ssize_t newsize) in _PyBytes_Resize() function
3337 if (_PyBytes_Resize(&writer->buffer, allocated)) in _PyBytesWriter_Resize()
3474 if (_PyBytes_Resize(&result, size)) { in _PyBytesWriter_Finish()
Dunicodeobject.c4856 if (_PyBytes_Resize(&v, out - start) < 0) in _PyUnicode_EncodeUTF7()
5816 if (_PyBytes_Resize(&v, PyBytes_GET_SIZE(v) + 4 * (moreunits - 1)) < 0) in _PyUnicode_EncodeUTF32()
5838 _PyBytes_Resize(&v, nsize); in _PyUnicode_EncodeUTF32()
6168 if (_PyBytes_Resize(&v, PyBytes_GET_SIZE(v) + 2 * (moreunits - 1)) < 0) in _PyUnicode_EncodeUTF16()
6190 _PyBytes_Resize(&v, nsize); in _PyUnicode_EncodeUTF16()
6589 if (_PyBytes_Resize(&repr, p - PyBytes_AS_STRING(repr)) < 0) { in PyUnicode_AsUnicodeEscapeString()
6804 if (_PyBytes_Resize(&repr, p - PyBytes_AS_STRING(repr)) < 0) { in PyUnicode_AsRawUnicodeEscapeString()
7694 if (_PyBytes_Resize(outbytes, n + outsize) < 0) { in encode_code_page_strict()
7795 if (_PyBytes_Resize(outbytes, n + outsize) < 0) in encode_code_page_errors()
7847 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/Modules/cjkcodecs/
Dmultibytecodec.c171 if (_PyBytes_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer()
523 if (_PyBytes_Resize(&buf.outobj, finalsize) == -1) in multibytecodec_encode()
/external/python/cpython3/Python/
Dmarshal.c128 if (_PyBytes_Resize(&p->str, size) != 0) { in w_reserve()
1583 if (_PyBytes_Resize(&wf.str, (Py_ssize_t)(wf.ptr - base)) < 0) in PyMarshal_WriteObjectToString()
Dcompile.c5627 if (_PyBytes_Resize(&a->a_lnotab, len) < 0) in assemble_lnotab()
5665 if (_PyBytes_Resize(&a->a_lnotab, len) < 0) in assemble_lnotab()
5683 if (_PyBytes_Resize(&a->a_lnotab, len * 2) < 0) in assemble_lnotab()
5722 if (_PyBytes_Resize(&a->a_bytecode, len * 2) < 0) in assemble_emit()
6060 if (_PyBytes_Resize(&a.a_lnotab, a.a_lnotab_off) < 0) in assemble()
6062 if (_PyBytes_Resize(&a.a_bytecode, a.a_offset * sizeof(_Py_CODEUNIT)) < 0) in assemble()

12