• Home
  • Raw
  • Download

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()
170 PyByteArrayObject *new; in PyByteArray_FromStringAndSize()
179 new = PyObject_New(PyByteArrayObject, &PyByteArray_Type); in PyByteArray_FromStringAndSize()
227 Py_ssize_t alloc = ((PyByteArrayObject *)self)->ob_alloc; in PyByteArray_Resize()
236 if (!_canresize((PyByteArrayObject *)self)) { in PyByteArray_Resize()
247 ((PyByteArrayObject *)self)->ob_bytes[size] = '\0'; /* Trailing null */ in PyByteArray_Resize()
259 sval = PyMem_Realloc(((PyByteArrayObject *)self)->ob_bytes, alloc); in PyByteArray_Resize()
265 ((PyByteArrayObject *)self)->ob_bytes = sval; in PyByteArray_Resize()
267 ((PyByteArrayObject *)self)->ob_alloc = alloc; in PyByteArray_Resize()
268 ((PyByteArrayObject *)self)->ob_bytes[size] = '\0'; /* Trailing null byte */ in PyByteArray_Resize()
277 PyByteArrayObject *result = NULL; in PyByteArray_Concat()
293 result = (PyByteArrayObject *) \ in PyByteArray_Concat()
311 bytearray_length(PyByteArrayObject *self) in bytearray_length()
317 bytearray_iconcat(PyByteArrayObject *self, PyObject *other) in bytearray_iconcat()
350 bytearray_repeat(PyByteArrayObject *self, Py_ssize_t count) in bytearray_repeat()
352 PyByteArrayObject *result; in bytearray_repeat()
362 result = (PyByteArrayObject *)PyByteArray_FromStringAndSize(NULL, size); in bytearray_repeat()
376 bytearray_irepeat(PyByteArrayObject *self, Py_ssize_t count) in bytearray_irepeat()
407 bytearray_getitem(PyByteArrayObject *self, Py_ssize_t i) in bytearray_getitem()
419 bytearray_subscript(PyByteArrayObject *self, PyObject *index) in bytearray_subscript()
474 bytearray_setslice(PyByteArrayObject *self, Py_ssize_t lo, Py_ssize_t hi, in bytearray_setslice()
564 bytearray_setitem(PyByteArrayObject *self, Py_ssize_t i, PyObject *value) in bytearray_setitem()
587 bytearray_ass_subscript(PyByteArrayObject *self, PyObject *index, PyObject *values) in bytearray_ass_subscript()
655 bytes = ((PyByteArrayObject *)values)->ob_bytes; in bytearray_ass_subscript()
751 bytearray_init(PyByteArrayObject *self, PyObject *args, PyObject *kwds) in bytearray_init()
921 bytearray_repr(PyByteArrayObject *self) in bytearray_repr()
1013 return bytearray_repr((PyByteArrayObject*)op); in bytearray_str()
1015 return PyBytes_FromStringAndSize(((PyByteArrayObject*)op)->ob_bytes, Py_SIZE(op)); in bytearray_str()
1100 bytearray_dealloc(PyByteArrayObject *self) in bytearray_dealloc()
1154 bytearray_find_internal(PyByteArrayObject *self, PyObject *args, int dir) in bytearray_find_internal()
1188 bytearray_find(PyByteArrayObject *self, PyObject *args) in bytearray_find()
1204 bytearray_count(PyByteArrayObject *self, PyObject *args) in bytearray_count()
1234 bytearray_index(PyByteArrayObject *self, PyObject *args) in bytearray_index()
1258 bytearray_rfind(PyByteArrayObject *self, PyObject *args) in bytearray_rfind()
1273 bytearray_rindex(PyByteArrayObject *self, PyObject *args) in bytearray_rindex()
1316 _bytearray_tailmatch(PyByteArrayObject *self, PyObject *substr, Py_ssize_t start, in _bytearray_tailmatch()
1363 bytearray_startswith(PyByteArrayObject *self, PyObject *args) in bytearray_startswith()
1402 bytearray_endswith(PyByteArrayObject *self, PyObject *args) in bytearray_endswith()
1442 bytearray_translate(PyByteArrayObject *self, PyObject *args) in bytearray_translate()
1539 Py_LOCAL(PyByteArrayObject *)
1540 return_self(PyByteArrayObject *self) in return_self()
1542 return (PyByteArrayObject *)PyByteArray_FromStringAndSize( in return_self()
1567 Py_LOCAL(PyByteArrayObject *)
1568 replace_interleave(PyByteArrayObject *self, in replace_interleave()
1575 PyByteArrayObject *result; in replace_interleave()
1599 if (! (result = (PyByteArrayObject *) in replace_interleave()
1627 Py_LOCAL(PyByteArrayObject *)
1628 replace_delete_single_character(PyByteArrayObject *self, in replace_delete_single_character()
1635 PyByteArrayObject *result; in replace_delete_single_character()
1648 if ( (result = (PyByteArrayObject *) in replace_delete_single_character()
1670 Py_LOCAL(PyByteArrayObject *)
1671 replace_delete_substring(PyByteArrayObject *self, in replace_delete_substring()
1679 PyByteArrayObject *result; in replace_delete_substring()
1696 if ( (result = (PyByteArrayObject *) in replace_delete_substring()
1722 Py_LOCAL(PyByteArrayObject *)
1723 replace_single_character_in_place(PyByteArrayObject *self, in replace_single_character_in_place()
1729 PyByteArrayObject *result; in replace_single_character_in_place()
1743 result = (PyByteArrayObject *) PyByteArray_FromStringAndSize(NULL, self_len); in replace_single_character_in_place()
1767 Py_LOCAL(PyByteArrayObject *)
1768 replace_substring_in_place(PyByteArrayObject *self, in replace_substring_in_place()
1776 PyByteArrayObject *result; in replace_substring_in_place()
1792 result = (PyByteArrayObject *) PyByteArray_FromStringAndSize(NULL, self_len); in replace_substring_in_place()
1818 Py_LOCAL(PyByteArrayObject *)
1819 replace_single_character(PyByteArrayObject *self, in replace_single_character()
1828 PyByteArrayObject *result; in replace_single_character()
1852 if ( (result = (PyByteArrayObject *) in replace_single_character()
1885 Py_LOCAL(PyByteArrayObject *)
1886 replace_substring(PyByteArrayObject *self, in replace_substring()
1895 PyByteArrayObject *result; in replace_substring()
1922 if ( (result = (PyByteArrayObject *) in replace_substring()
1957 Py_LOCAL(PyByteArrayObject *)
1958 replace(PyByteArrayObject *self, in replace()
2036 bytearray_replace(PyByteArrayObject *self, PyObject *args) in bytearray_replace()
2052 res = (PyObject *)replace((PyByteArrayObject *) self, in bytearray_replace()
2070 bytearray_split(PyByteArrayObject *self, PyObject *args) in bytearray_split()
2106 bytearray_partition(PyByteArrayObject *self, PyObject *sep_obj) in bytearray_partition()
2134 bytearray_rpartition(PyByteArrayObject *self, PyObject *sep_obj) in bytearray_rpartition()
2163 bytearray_rsplit(PyByteArrayObject *self, PyObject *args) in bytearray_rsplit()
2196 bytearray_reverse(PyByteArrayObject *self, PyObject *unused) in bytearray_reverse()
2218 bytearray_insert(PyByteArrayObject *self, PyObject *args) in bytearray_insert()
2255 bytearray_append(PyByteArrayObject *self, PyObject *arg) in bytearray_append()
2281 bytearray_extend(PyByteArrayObject *self, PyObject *arg) in bytearray_extend()
2369 bytearray_pop(PyByteArrayObject *self, PyObject *args) in bytearray_pop()
2404 bytearray_remove(PyByteArrayObject *self, PyObject *arg) in bytearray_remove()
2456 bytearray_strip(PyByteArrayObject *self, PyObject *args) in bytearray_strip()
2492 bytearray_lstrip(PyByteArrayObject *self, PyObject *args) in bytearray_lstrip()
2525 bytearray_rstrip(PyByteArrayObject *self, PyObject *args) in bytearray_rstrip()
2588 bytearray_alloc(PyByteArrayObject *self) in bytearray_alloc()
2599 bytearray_join(PyByteArrayObject *self, PyObject *it) in bytearray_join()
2754 bytearray_reduce(PyByteArrayObject *self) in bytearray_reduce()
2786 bytearray_sizeof(PyByteArrayObject *self) in bytearray_sizeof()
2909 sizeof(PyByteArrayObject),
2954 PyByteArrayObject *it_seq; /* Set to NULL when iterator is exhausted */
2975 PyByteArrayObject *seq; in bytearrayiter_next()
3062 it->it_seq = (PyByteArrayObject *)seq; in bytearray_iter()