Lines Matching refs:PyBytes_AS_STRING
481 *p = PyBytes_AS_STRING(arg)[0]; in byte_converter()
520 *pbuf = PyBytes_AS_STRING(v); in format_obj()
543 *pbuf = PyBytes_AS_STRING(result); in format_obj()
553 *pbuf = PyBytes_AS_STRING(result); in format_obj()
898 pbuf = PyBytes_AS_STRING(temp); in _PyBytes_FormatEx()
1237 *s = PyBytes_AS_STRING(obj); in PyBytes_AsStringAndSize()
1435 memcpy(PyBytes_AS_STRING(result), va.buf, va.len); in bytes_concat()
1436 memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len); in bytes_concat()
1492 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains()
1635 PyBytes_AS_STRING(self) + start, in bytes_subscript()
1639 source_buf = PyBytes_AS_STRING(self); in bytes_subscript()
1644 result_buf = PyBytes_AS_STRING(result); in bytes_subscript()
1732 const char *s = PyBytes_AS_STRING(self), *sub; in bytes_split_impl()
1772 PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_partition_impl()
1799 PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_rpartition_impl()
1817 const char *s = PyBytes_AS_STRING(self), *sub; in bytes_rsplit_impl()
1887 return _Py_bytes_find(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_find_impl()
1904 return _Py_bytes_index(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_index_impl()
1921 return _Py_bytes_rfind(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_rfind_impl()
1938 return _Py_bytes_rindex(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_rindex_impl()
1947 const char *s = PyBytes_AS_STRING(self); in do_xstrip()
1986 const char *s = PyBytes_AS_STRING(self); in do_strip()
2087 return _Py_bytes_count(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_count_impl()
2124 table_chars = PyBytes_AS_STRING(table); in bytes_translate_impl()
2147 del_table_chars = PyBytes_AS_STRING(deletechars); in bytes_translate_impl()
2171 output_start = output = PyBytes_AS_STRING(result); in bytes_translate_impl()
2172 input = PyBytes_AS_STRING(input_obj); in bytes_translate_impl()
2289 const char *self_start = PyBytes_AS_STRING(self); in bytes_removeprefix_impl()
2326 const char *self_start = PyBytes_AS_STRING(self); in bytes_removesuffix_impl()
2367 return _Py_bytes_startswith(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_startswith_impl()
2391 return _Py_bytes_endswith(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_endswith_impl()
2436 (PyObject*) self, PyBytes_AS_STRING(self), in bytes_splitlines_impl()
2567 const char *argbuf = PyBytes_AS_STRING(self); in bytes_hex_impl()
2644 return _PyBytes_FormatEx(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), in bytes_mod()
2991 memcpy(PyBytes_AS_STRING(pnew), in bytes_subtype_new()
2992 PyBytes_AS_STRING(tmp), n+1); in bytes_subtype_new()
3092 memcpy(PyBytes_AS_STRING(*pv) + oldsize, wb.buf, wb.len); in PyBytes_Concat()
3161 memcpy(PyBytes_AS_STRING(*pv), PyBytes_AS_STRING(v), oldsize); in _PyBytes_Resize()
3165 *pv = PyBytes_FromStringAndSize(PyBytes_AS_STRING(v), newsize); in _PyBytes_Resize()
3390 return PyBytes_AS_STRING(writer->buffer); in _PyBytesWriter_AsString()
3488 dest = PyBytes_AS_STRING(writer->buffer); in _PyBytesWriter_Resize()