Home | History | Annotate | Download | only in Objects

Lines Matching refs:PyByteArrayObject

63 bytearray_buffer_getreadbuf(PyByteArrayObject *self, Py_ssize_t index, const void **ptr)
75 bytearray_buffer_getwritebuf(PyByteArrayObject *self, Py_ssize_t index, const void **ptr)
87 bytearray_buffer_getsegcount(PyByteArrayObject *self, Py_ssize_t *lenp)
95 bytearray_buffer_getcharbuf(PyByteArrayObject *self, Py_ssize_t index, const char **ptr)
107 bytearray_getbuffer(PyByteArrayObject *obj, Py_buffer *view, int flags)
124 bytearray_releasebuffer(PyByteArrayObject *obj, Py_buffer *view)
148 _canresize(PyByteArrayObject *self)
190 PyByteArrayObject *new;
199 new = PyObject_New(PyByteArrayObject, &PyByteArray_Type);
247 Py_ssize_t alloc = ((PyByteArrayObject *)self)->ob_alloc;
256 if (!_canresize((PyByteArrayObject *)self)) {
267 ((PyByteArrayObject *)self)->ob_bytes[size] = '\0'; /* Trailing null */
279 sval = PyMem_Realloc(((PyByteArrayObject *)self)->ob_bytes, alloc);
285 ((PyByteArrayObject *)self)->ob_bytes = sval;
287 ((PyByteArrayObject *)self)->ob_alloc = alloc;
288 ((PyByteArrayObject *)self)->ob_bytes[size] = '\0'; /* Trailing null byte */
297 PyByteArrayObject *result = NULL;
313 result = (PyByteArrayObject *) \
331 bytearray_length(PyByteArrayObject *self)
337 bytearray_iconcat(PyByteArrayObject *self, PyObject *other)
370 bytearray_repeat(PyByteArrayObject *self, Py_ssize_t count)
372 PyByteArrayObject *result;
382 result = (PyByteArrayObject *)PyByteArray_FromStringAndSize(NULL, size);
396 bytearray_irepeat(PyByteArrayObject *self, Py_ssize_t count)
427 bytearray_getitem(PyByteArrayObject *self, Py_ssize_t i)
439 bytearray_subscript(PyByteArrayObject *self, PyObject *index)
494 bytearray_setslice(PyByteArrayObject *self, Py_ssize_t lo, Py_ssize_t hi,
585 bytearray_setitem(PyByteArrayObject *self, Py_ssize_t i, PyObject *value)
608 bytearray_ass_subscript(PyByteArrayObject *self, PyObject *index, PyObject *values)
676 bytes = ((PyByteArrayObject *)values)->ob_bytes;
772 bytearray_init(PyByteArrayObject *self, PyObject *args, PyObject *kwds)
942 bytearray_repr(PyByteArrayObject *self)
1034 return bytearray_repr((PyByteArrayObject*)op);
1036 return PyBytes_FromStringAndSize(((PyByteArrayObject*)op)->ob_bytes, Py_SIZE(op));
1121 bytearray_dealloc(PyByteArrayObject *self)
1175 bytearray_find_internal(PyByteArrayObject *self, PyObject *args, int dir)
1209 bytearray_find(PyByteArrayObject *self, PyObject *args)
1225 bytearray_count(PyByteArrayObject *self, PyObject *args)
1255 bytearray_index(PyByteArrayObject *self, PyObject *args)
1279 bytearray_rfind(PyByteArrayObject *self, PyObject *args)
1294 bytearray_rindex(PyByteArrayObject *self, PyObject *args)
1337 _bytearray_tailmatch(PyByteArrayObject *self, PyObject *substr, Py_ssize_t start,
1384 bytearray_startswith(PyByteArrayObject *self, PyObject *args)
1423 bytearray_endswith(PyByteArrayObject *self, PyObject *args)
1463 bytearray_translate(PyByteArrayObject *self, PyObject *args)
1560 Py_LOCAL(PyByteArrayObject *)
1561 return_self(PyByteArrayObject *self)
1563 return (PyByteArrayObject *)PyByteArray_FromStringAndSize(
1588 Py_LOCAL(PyByteArrayObject *)
1589 replace_interleave(PyByteArrayObject *self,
1596 PyByteArrayObject *result;
1619 if (! (result = (PyByteArrayObject *)
1647 Py_LOCAL(PyByteArrayObject *)
1648 replace_delete_single_character(PyByteArrayObject *self,
1655 PyByteArrayObject *result;
1668 if ( (result = (PyByteArrayObject *)
1690 Py_LOCAL(PyByteArrayObject *)
1691 replace_delete_substring(PyByteArrayObject *self,
1699 PyByteArrayObject *result;
1716 if ( (result = (PyByteArrayObject *)
1742 Py_LOCAL(PyByteArrayObject *)
1743 replace_single_character_in_place(PyByteArrayObject *self,
1749 PyByteArrayObject *result;
1763 result = (PyByteArrayObject *) PyByteArray_FromStringAndSize(NULL, self_len);
1787 Py_LOCAL(PyByteArrayObject *)
1788 replace_substring_in_place(PyByteArrayObject *self,
1796 PyByteArrayObject *result;
1812 result = (PyByteArrayObject *) PyByteArray_FromStringAndSize(NULL, self_len);
1838 Py_LOCAL(PyByteArrayObject *)
1839 replace_single_character(PyByteArrayObject *self,
1848 PyByteArrayObject *result;
1868 if ( (result = (PyByteArrayObject *)
1901 Py_LOCAL(PyByteArrayObject *)
1902 replace_substring(PyByteArrayObject *self,
1911 PyByteArrayObject *result;
1934 if ( (result = (PyByteArrayObject *)
1969 Py_LOCAL(PyByteArrayObject *)
1970 replace(PyByteArrayObject *self,
2048 bytearray_replace(PyByteArrayObject *self, PyObject *args)
2064 res = (PyObject *)replace((PyByteArrayObject *) self,
2082 bytearray_split(PyByteArrayObject *self, PyObject *args)
2118 bytearray_partition(PyByteArrayObject *self, PyObject *sep_obj)
2146 bytearray_rpartition(PyByteArrayObject *self, PyObject *sep_obj)
2175 bytearray_rsplit(PyByteArrayObject *self, PyObject *args)
2208 bytearray_reverse(PyByteArrayObject *self, PyObject *unused)
2230 bytearray_insert(PyByteArrayObject *self, PyObject *args)
2267 bytearray_append(PyByteArrayObject *self, PyObject *arg)
2293 bytearray_extend(PyByteArrayObject *self, PyObject *arg)
2381 bytearray_pop(PyByteArrayObject *self, PyObject *args)
2416 bytearray_remove(PyByteArrayObject *self, PyObject *arg)
2468 bytearray_strip(PyByteArrayObject *self, PyObject *args)
2504 bytearray_lstrip(PyByteArrayObject *self, PyObject *args)
2537 bytearray_rstrip(PyByteArrayObject *self, PyObject *args)
2600 bytearray_alloc(PyByteArrayObject *self)
2611 bytearray_join(PyByteArrayObject *self, PyObject *it)
2766 bytearray_reduce(PyByteArrayObject *self)
2798 bytearray_sizeof(PyByteArrayObject *self)
2921 sizeof(PyByteArrayObject),
2966 PyByteArrayObject *it_seq; /* Set to NULL when iterator is exhausted */
2987 PyByteArrayObject *seq;
3074 it->it_seq = (PyByteArrayObject *)seq;