/external/python/cpython2/Include/ |
D | bytesobject.h | 20 #define _PyBytes_Resize _PyString_Resize macro
|
/external/python/cpython3/Modules/ |
D | zlibmodule.c | 177 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.c | 127 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.c | 138 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.c | 241 _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.c | 243 if (_PyBytes_Resize(&v, (p - PyBytes_AS_STRING(v)))) { in _codecs_escape_encode_impl()
|
D | overlapped.c | 809 _PyBytes_Resize(&self->allocated_buffer, transferred)) in Overlapped_getresult() 819 _PyBytes_Resize(&self->read_from.allocated_buffer, transferred)) in Overlapped_getresult()
|
D | ossaudiodev.c | 423 _PyBytes_Resize(&rv, count); in oss_read()
|
/external/python/cpython3/Include/cpython/ |
D | bytesobject.h | 17 PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t);
|
/external/python/cpython3/Modules/_io/ |
D | fileio.c | 739 if (_PyBytes_Resize(&result, bufsize) < 0) 766 if (_PyBytes_Resize(&result, bytes_read) < 0) 822 if (_PyBytes_Resize(&bytes, n) < 0) {
|
D | bytesio.c | 163 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()
|
D | winconsoleio.c | 891 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()
|
D | bufferedio.c | 954 _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/ |
D | multiprocessing.c | 93 _PyBytes_Resize(&buf, nread); in multiprocessing_recv()
|
/external/python/cpython2/Modules/_io/ |
D | fileio.c | 601 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()
|
D | bufferedio.c | 1475 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic() 1500 if (_PyBytes_Resize(&res, written)) in _bufferedreader_read_generic()
|
/external/python/cpython3/Objects/ |
D | fileobject.c | 89 _PyBytes_Resize(&result, len-1); in PyFile_GetLine()
|
D | bytesobject.c | 2127 _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()
|
D | unicodeobject.c | 4856 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/ |
D | bytesobject.c | 2212 _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/ |
D | zlibmodule.c | 169 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/ |
D | bytes.rst | 194 .. c:function:: int _PyBytes_Resize(PyObject **bytes, Py_ssize_t newsize)
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 171 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/ |
D | marshal.c | 128 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()
|
D | compile.c | 5627 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()
|