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