Home | History | Annotate | Download | only in Objects

Lines Matching refs:pv

2868 PyBytes_Concat(PyObject **pv, PyObject *w)
2870 assert(pv != NULL);
2871 if (*pv == NULL)
2874 Py_CLEAR(*pv);
2878 if (Py_REFCNT(*pv) == 1 && PyBytes_CheckExact(*pv)) {
2886 Py_TYPE(w)->tp_name, Py_TYPE(*pv)->tp_name);
2887 Py_CLEAR(*pv);
2891 oldsize = PyBytes_GET_SIZE(*pv);
2896 if (_PyBytes_Resize(pv, oldsize + wb.len) < 0)
2899 memcpy(PyBytes_AS_STRING(*pv) + oldsize, wb.buf, wb.len);
2905 Py_CLEAR(*pv);
2912 v = bytes_concat(*pv, w);
2913 Py_SETREF(*pv, v);
2918 PyBytes_ConcatAndDel(PyObject **pv, PyObject *w)
2920 PyBytes_Concat(pv, w);
2932 original bytes object at *pv is deallocated, *pv is set to NULL, an "out of
2934 returned, and the value in *pv may or may not be the same as on input.
2940 _PyBytes_Resize(PyObject **pv, Py_ssize_t newsize)
2944 v = *pv;
2958 *pv = (PyObject *)
2960 if (*pv == NULL) {
2965 _Py_NewReference(*pv);
2966 sv = (PyBytesObject *) *pv;
2972 *pv = 0;