Lines Matching refs:PyBytesObject
24 static PyBytesObject *characters[UCHAR_MAX + 1];
25 static PyBytesObject *nullstring;
33 #define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1)
64 PyBytesObject *op; in _PyBytes_FromSize()
83 op = (PyBytesObject *)PyObject_Calloc(1, PyBytesObject_SIZE + size); in _PyBytes_FromSize()
85 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in _PyBytes_FromSize()
103 PyBytesObject *op; in PyBytes_FromStringAndSize()
119 op = (PyBytesObject *)_PyBytes_FromSize(size, 0); in PyBytes_FromStringAndSize()
138 PyBytesObject *op; in PyBytes_FromString()
163 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + size); in PyBytes_FromString()
1290 return ((PyBytesObject *)op)->ob_sval; in PyBytes_AsString()
1338 PyBytesObject* op = (PyBytesObject*) obj; in PyBytes_Repr()
1426 bytes_length(PyBytesObject *a) in bytes_length()
1479 bytes_repeat(PyBytesObject *a, Py_ssize_t n) in bytes_repeat()
1484 PyBytesObject *op; in bytes_repeat()
1507 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + nbytes); in bytes_repeat()
1537 bytes_item(PyBytesObject *a, Py_ssize_t i) in bytes_item()
1547 bytes_compare_eq(PyBytesObject *a, PyBytesObject *b) in bytes_compare_eq()
1564 bytes_richcompare(PyBytesObject *a, PyBytesObject *b, int op) in bytes_richcompare()
1657 bytes_hash(PyBytesObject *a) in bytes_hash()
1667 bytes_subscript(PyBytesObject* self, PyObject* item) in bytes_subscript()
1732 bytes_buffer_getbuffer(PyBytesObject *self, Py_buffer *view, int flags) in bytes_buffer_getbuffer()
1780 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_split_impl()
1819 bytes_partition_impl(PyBytesObject *self, Py_buffer *sep) in bytes_partition_impl()
1846 bytes_rpartition_impl(PyBytesObject *self, Py_buffer *sep) in bytes_rpartition_impl()
1865 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_rsplit_impl()
1904 bytes_join(PyBytesObject *self, PyObject *iterable_of_bytes) in bytes_join()
1915 return bytes_join((PyBytesObject*)sep, x); in _PyBytes_Join()
1919 bytes_find(PyBytesObject *self, PyObject *args) in bytes_find()
1925 bytes_index(PyBytesObject *self, PyObject *args) in bytes_index()
1932 bytes_rfind(PyBytesObject *self, PyObject *args) in bytes_rfind()
1939 bytes_rindex(PyBytesObject *self, PyObject *args) in bytes_rindex()
1946 do_xstrip(PyBytesObject *self, int striptype, PyObject *sepobj) in do_xstrip()
1987 do_strip(PyBytesObject *self, int striptype) in do_strip()
2017 do_argstrip(PyBytesObject *self, int striptype, PyObject *bytes) in do_argstrip()
2037 bytes_strip_impl(PyBytesObject *self, PyObject *bytes) in bytes_strip_impl()
2055 bytes_lstrip_impl(PyBytesObject *self, PyObject *bytes) in bytes_lstrip_impl()
2073 bytes_rstrip_impl(PyBytesObject *self, PyObject *bytes) in bytes_rstrip_impl()
2081 bytes_count(PyBytesObject *self, PyObject *args) in bytes_count()
2102 bytes_translate_impl(PyBytesObject *self, PyObject *table, in bytes_translate_impl()
2259 bytes_replace_impl(PyBytesObject *self, Py_buffer *old, Py_buffer *new, in bytes_replace_impl()
2272 bytes_startswith(PyBytesObject *self, PyObject *args) in bytes_startswith()
2278 bytes_endswith(PyBytesObject *self, PyObject *args) in bytes_endswith()
2300 bytes_decode_impl(PyBytesObject *self, const char *encoding, in bytes_decode_impl()
2320 bytes_splitlines_impl(PyBytesObject *self, int keepends) in bytes_splitlines_impl()
2438 bytes_hex(PyBytesObject *self) in bytes_hex()
2446 bytes_getnewargs(PyBytesObject *v) in bytes_getnewargs()
2642 if (PyBuffer_ToContiguous(((PyBytesObject *)new)->ob_sval, in _PyBytes_FromBuffer()
2665 str = ((PyBytesObject *)bytes)->ob_sval; \
2817 ((PyBytesObject *)pnew)->ob_shash = in bytes_subtype_new()
2818 ((PyBytesObject *)tmp)->ob_shash; in bytes_subtype_new()
2958 PyBytesObject *sv; in _PyBytes_Resize()
2981 sv = (PyBytesObject *) *pv; in _PyBytes_Resize()
3007 PyBytesObject *it_seq; /* Set to NULL when iterator is exhausted */
3028 PyBytesObject *seq; in striter_next()
3150 it->it_seq = (PyBytesObject *)seq; in bytes_iter()