Home
last modified time | relevance | path

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

12

/third_party/python/Include/cpython/
Dbytesobject.h17 PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t);
/third_party/python/Modules/_multiprocessing/
Dmultiprocessing.c118 _PyBytes_Resize(&buf, nread); in _multiprocessing_recv_impl()
/third_party/python/Modules/_io/
Dfileio.c745 if (_PyBytes_Resize(&result, bufsize) < 0)
772 if (_PyBytes_Resize(&result, bytes_read) < 0)
828 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.c883 if (_PyBytes_Resize(&bytes, n * sizeof(wchar_t)) < 0) { in _io__WindowsConsoleIO_readall_impl()
933 if (_PyBytes_Resize(&bytes, bytes_size) < 0) { in _io__WindowsConsoleIO_read_impl()
Dbufferedio.c956 _PyBytes_Resize(&res, r); in _io__Buffered_read1_impl()
1679 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
1703 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
/third_party/python/Objects/
Dfileobject.c89 _PyBytes_Resize(&result, len-1); in PyFile_GetLine()
Dbytesobject.c2142 _PyBytes_Resize(&result, output - output_start); in bytes_translate_impl()
2966 if (_PyBytes_Resize(pv, oldsize + wb.len) < 0) in PyBytes_Concat()
3010 _PyBytes_Resize(PyObject **pv, Py_ssize_t newsize) in _PyBytes_Resize() function
3356 if (_PyBytes_Resize(&writer->buffer, allocated)) in _PyBytesWriter_Resize()
3493 if (_PyBytes_Resize(&result, size)) { in _PyBytesWriter_Finish()
Dcodeobject.c408 if (_PyBytes_Resize(bytes, len * 2) < 0) in emit_pair()
470 _PyBytes_Resize(&bytes, table_offset); in code_getlnotab()
Dunicodeobject.c5063 if (_PyBytes_Resize(&v, out - start) < 0) in _PyUnicode_EncodeUTF7()
6014 if (_PyBytes_Resize(&v, PyBytes_GET_SIZE(v) + 4 * (moreunits - 1)) < 0) in _PyUnicode_EncodeUTF32()
6036 _PyBytes_Resize(&v, nsize); in _PyUnicode_EncodeUTF32()
6366 if (_PyBytes_Resize(&v, PyBytes_GET_SIZE(v) + 2 * (moreunits - 1)) < 0) in _PyUnicode_EncodeUTF16()
6388 _PyBytes_Resize(&v, nsize); in _PyUnicode_EncodeUTF16()
6810 if (_PyBytes_Resize(&repr, p - PyBytes_AS_STRING(repr)) < 0) { in PyUnicode_AsUnicodeEscapeString()
7051 if (_PyBytes_Resize(&repr, p - PyBytes_AS_STRING(repr)) < 0) { in PyUnicode_AsRawUnicodeEscapeString()
7952 if (_PyBytes_Resize(outbytes, n + outsize) < 0) { in encode_code_page_strict()
8062 if (_PyBytes_Resize(outbytes, n + outsize) < 0) in encode_code_page_errors()
8114 if (_PyBytes_Resize(outbytes, newoutsize) < 0) { in encode_code_page_errors()
[all …]
/third_party/python/Modules/
D_winapi.c272 _PyBytes_Resize(&self->read_buffer, transferred)) in _winapi_Overlapped_GetOverlappedResult_impl()
1500 if (_PyBytes_Resize(&buf, nread)) in _winapi_PeekNamedPipe_impl()
1570 if (_PyBytes_Resize(&buf, nread)) in _winapi_ReadFile_impl()
D_codecsmodule.c245 if (_PyBytes_Resize(&v, (p - PyBytes_AS_STRING(v)))) { in _codecs_escape_encode_impl()
Doverlapped.c884 _PyBytes_Resize(&self->allocated_buffer, transferred)) in _overlapped_Overlapped_getresult_impl()
894 _PyBytes_Resize(&self->read_from.allocated_buffer, transferred)) in _overlapped_Overlapped_getresult_impl()
Dossaudiodev.c423 _PyBytes_Resize(&rv, count); in oss_read()
Dsocketmodule.c3083 _PyBytes_Resize(&buf, buflen); in sock_getsockopt()
3524 _PyBytes_Resize(&buf, outlen); in sock_recv()
3707 if (_PyBytes_Resize(&buf, outlen) < 0) in sock_recvfrom()
3949 _PyBytes_Resize(buf, received); in makeval_recvmsg()
Dposixmodule.c9471 _PyBytes_Resize(&buffer, n); in os_read_impl()
9637 _PyBytes_Resize(&buffer, n); in os_pread_impl()
12763 _PyBytes_Resize(&buffer, result); in os_getxattr_impl()
14468 _PyBytes_Resize(&bytes, n); in os_getrandom_impl()
D_ssl.c2545 _PyBytes_Resize(&dest, count); in _ssl__SSLSocket_read_impl()
4786 _PyBytes_Resize(&result, nbytes); in _ssl_MemoryBIO_read_impl()
D_datetimemodule.c1610 if (_PyBytes_Resize(&newfmt, totalnew) < 0) in wrap_strftime()
1620 if (_PyBytes_Resize(&newfmt, usednew) < 0) in wrap_strftime()
D_pickle.c1001 if (_PyBytes_Resize(&output_buffer, self->output_len) < 0) in _Pickler_GetString()
1078 if (_PyBytes_Resize(&self->output_buffer, self->max_output_len) < 0) in _Pickler_Write()
D_elementtree.c2765 if (_PyBytes_Resize(&self->data, size + 1) < 0) in treebuilder_handle_data()
/third_party/python/Doc/c-api/
Dbytes.rst194 .. c:function:: int _PyBytes_Resize(PyObject **bytes, Py_ssize_t newsize)
/third_party/python/Python/
Dmarshal.c128 if (_PyBytes_Resize(&p->str, size) != 0) { in w_reserve()
1593 if (_PyBytes_Resize(&wf.str, (Py_ssize_t)(wf.ptr - base)) < 0) in PyMarshal_WriteObjectToString()
Dcompile.c6606 if (_PyBytes_Resize(&a->a_lnotab, len * 2) < 0) in assemble_emit_linetable_pair()
6695 if (_PyBytes_Resize(&a->a_bytecode, len * 2) < 0) in assemble_emit()
7153 if (_PyBytes_Resize(&a.a_lnotab, a.a_lnotab_off) < 0) { in assemble()
7159 if (_PyBytes_Resize(&a.a_bytecode, a.a_offset * sizeof(_Py_CODEUNIT)) < 0) { in assemble()
/third_party/python/Modules/cjkcodecs/
Dmultibytecodec.c204 if (_PyBytes_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer()
556 if (_PyBytes_Resize(&buf.outobj, finalsize) == -1) in multibytecodec_encode()
/third_party/python/Doc/data/
Drefcounts.dat3044 _PyBytes_Resize:int:::
3045 _PyBytes_Resize:PyObject**:bytes:0:
3046 _PyBytes_Resize:Py_ssize_t:newsize::

12