Lines Matching refs:PyBytesObject
31 #define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1)
70 PyBytesObject *op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE); in bytes_create_empty_string_singleton()
109 PyBytesObject *op; in _PyBytes_FromSize()
124 op = (PyBytesObject *)PyObject_Calloc(1, PyBytesObject_SIZE + size); in _PyBytes_FromSize()
126 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in _PyBytes_FromSize()
141 PyBytesObject *op; in PyBytes_FromStringAndSize()
159 op = (PyBytesObject *)_PyBytes_FromSize(size, 0); in PyBytes_FromStringAndSize()
179 PyBytesObject *op; in PyBytes_FromString()
202 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in PyBytes_FromString()
1242 return ((PyBytesObject *)op)->ob_sval; in PyBytes_AsString()
1294 PyBytesObject* op = (PyBytesObject*) obj; in PyBytes_Repr()
1385 bytes_length(PyBytesObject *a) in bytes_length()
1438 bytes_repeat(PyBytesObject *a, Py_ssize_t n) in bytes_repeat()
1443 PyBytesObject *op; in bytes_repeat()
1466 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + nbytes); in bytes_repeat()
1497 bytes_item(PyBytesObject *a, Py_ssize_t i) in bytes_item()
1507 bytes_compare_eq(PyBytesObject *a, PyBytesObject *b) in bytes_compare_eq()
1524 bytes_richcompare(PyBytesObject *a, PyBytesObject *b, int op) in bytes_richcompare()
1585 bytes_hash(PyBytesObject *a) in bytes_hash()
1595 bytes_subscript(PyBytesObject* self, PyObject* item) in bytes_subscript()
1661 bytes_buffer_getbuffer(PyBytesObject *self, Py_buffer *view, int flags) in bytes_buffer_getbuffer()
1709 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_split_impl()
1748 bytes_partition_impl(PyBytesObject *self, Py_buffer *sep) in bytes_partition_impl()
1775 bytes_rpartition_impl(PyBytesObject *self, Py_buffer *sep) in bytes_rpartition_impl()
1794 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_rsplit_impl()
1833 bytes_join(PyBytesObject *self, PyObject *iterable_of_bytes) in bytes_join()
1844 return bytes_join((PyBytesObject*)sep, x); in _PyBytes_Join()
1848 bytes_find(PyBytesObject *self, PyObject *args) in bytes_find()
1854 bytes_index(PyBytesObject *self, PyObject *args) in bytes_index()
1861 bytes_rfind(PyBytesObject *self, PyObject *args) in bytes_rfind()
1868 bytes_rindex(PyBytesObject *self, PyObject *args) in bytes_rindex()
1875 do_xstrip(PyBytesObject *self, int striptype, PyObject *sepobj) in do_xstrip()
1916 do_strip(PyBytesObject *self, int striptype) in do_strip()
1946 do_argstrip(PyBytesObject *self, int striptype, PyObject *bytes) in do_argstrip()
1966 bytes_strip_impl(PyBytesObject *self, PyObject *bytes) in bytes_strip_impl()
1984 bytes_lstrip_impl(PyBytesObject *self, PyObject *bytes) in bytes_lstrip_impl()
2002 bytes_rstrip_impl(PyBytesObject *self, PyObject *bytes) in bytes_rstrip_impl()
2010 bytes_count(PyBytesObject *self, PyObject *args) in bytes_count()
2031 bytes_translate_impl(PyBytesObject *self, PyObject *table, in bytes_translate_impl()
2189 bytes_replace_impl(PyBytesObject *self, Py_buffer *old, Py_buffer *new, in bytes_replace_impl()
2213 bytes_removeprefix_impl(PyBytesObject *self, Py_buffer *prefix) in bytes_removeprefix_impl()
2251 bytes_removesuffix_impl(PyBytesObject *self, Py_buffer *suffix) in bytes_removesuffix_impl()
2277 bytes_startswith(PyBytesObject *self, PyObject *args) in bytes_startswith()
2283 bytes_endswith(PyBytesObject *self, PyObject *args) in bytes_endswith()
2305 bytes_decode_impl(PyBytesObject *self, const char *encoding, in bytes_decode_impl()
2325 bytes_splitlines_impl(PyBytesObject *self, int keepends) in bytes_splitlines_impl()
2459 bytes_hex_impl(PyBytesObject *self, PyObject *sep, int bytes_per_sep) in bytes_hex_impl()
2468 bytes_getnewargs(PyBytesObject *v, PyObject *Py_UNUSED(ignored)) in bytes_getnewargs()
2664 if (PyBuffer_ToContiguous(((PyBytesObject *)new)->ob_sval, in _PyBytes_FromBuffer()
2733 str = ((PyBytesObject *)bytes)->ob_sval; in _PyBytes_FromTuple()
2873 ((PyBytesObject *)pnew)->ob_shash = in bytes_subtype_new()
2874 ((PyBytesObject *)tmp)->ob_shash; in bytes_subtype_new()
3013 PyBytesObject *sv; in _PyBytes_Resize()
3053 sv = (PyBytesObject *) *pv; in _PyBytes_Resize()
3092 PyBytesObject *it_seq; /* Set to NULL when iterator is exhausted */
3113 PyBytesObject *seq; in striter_next()
3232 it->it_seq = (PyBytesObject *)seq; in bytes_iter()