Home
last modified time | relevance | path

Searched refs:PyBytesObject (Results 1 – 22 of 22) sorted by relevance

/third_party/python/Objects/clinic/
Dbytesobject.c.h15 bytes___bytes___impl(PyBytesObject *self);
18 bytes___bytes__(PyBytesObject *self, PyObject *Py_UNUSED(ignored)) in bytes___bytes__()
41 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
44 bytes_split(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in bytes_split()
103 bytes_partition_impl(PyBytesObject *self, Py_buffer *sep);
106 bytes_partition(PyBytesObject *self, PyObject *arg) in bytes_partition()
146 bytes_rpartition_impl(PyBytesObject *self, Py_buffer *sep);
149 bytes_rpartition(PyBytesObject *self, PyObject *arg) in bytes_rpartition()
192 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
195 bytes_rsplit(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in bytes_rsplit()
[all …]
Dcodeobject.c.h177 int co_firstlineno, PyBytesObject *co_code,
182 PyBytesObject *co_linetable,
183 PyBytesObject *co_exceptiontable);
200 PyBytesObject *co_code = NULL; in code_replace()
209 PyBytesObject *co_linetable = (PyBytesObject *)self->co_linetable; in code_replace()
210 PyBytesObject *co_exceptiontable = (PyBytesObject *)self->co_exceptiontable; in code_replace()
287 co_code = (PyBytesObject *)args[7]; in code_replace()
386 co_linetable = (PyBytesObject *)args[16]; in code_replace()
395 co_exceptiontable = (PyBytesObject *)args[17]; in code_replace()
/third_party/python/Objects/
Dbytesobject.c33 #define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1)
42 ((PyBytesObject *)&(CHARACTERS[ch]));
86 PyBytesObject *op; in _PyBytes_FromSize()
101 op = (PyBytesObject *)PyObject_Calloc(1, PyBytesObject_SIZE + size); in _PyBytes_FromSize()
103 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in _PyBytes_FromSize()
121 PyBytesObject *op; in PyBytes_FromStringAndSize()
136 op = (PyBytesObject *)_PyBytes_FromSize(size, 0); in PyBytes_FromStringAndSize()
150 PyBytesObject *op; in PyBytes_FromString()
170 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in PyBytes_FromString()
1231 return ((PyBytesObject *)op)->ob_sval; in PyBytes_AsString()
[all …]
Dcodeobject.c1907 int co_firstlineno, PyBytesObject *co_code, in code_replace_impl()
1912 PyBytesObject *co_linetable, in code_replace_impl()
1913 PyBytesObject *co_exceptiontable) in code_replace_impl()
1939 co_code = (PyBytesObject *)code; in code_replace_impl()
/third_party/python/PC/clinic/
D_testconsole.c.h18 PyBytesObject *s);
28 PyBytesObject *s; in _testconsole_write_input()
39 s = (PyBytesObject *)args[1]; in _testconsole_write_input()
/third_party/python/Include/cpython/
Dbytesobject.h15 } PyBytesObject; typedef
33 (assert(PyBytes_Check(op)), _Py_CAST(PyBytesObject*, op))
44 PyBytesObject *self = _PyBytes_CAST(op); in PyBytes_GET_SIZE()
/third_party/python/Include/internal/
Dpycore_global_objects.h37 PyBytesObject bytes_empty;
39 PyBytesObject ob;
/third_party/python/Objects/stringlib/
Dstringdefs.h11 #define STRINGLIB_OBJECT PyBytesObject
/third_party/python/PC/
D_testconsole.c49 PyBytesObject *s) in _testconsole_write_input_impl()
/third_party/python/Doc/c-api/
Dcode.rst85 Returns a strong reference to a :c:type:`PyBytesObject` representing the
89 This ``PyBytesObject`` may be created on-demand by the interpreter and does
Dbytes.rst14 .. c:type:: PyBytesObject
Darg.rst145 ``S`` (:class:`bytes`) [PyBytesObject \*]
Dunicode.rst852 *result* must be a :c:expr:`PyBytesObject*` which must be released when it is
/third_party/python/Modules/
D_testclinic.c125 bytes_object_converter_impl(PyObject *module, PyBytesObject *a) in bytes_object_converter_impl()
619 void *bytes_obj_buf = ((PyBytesObject *)bytes_obj)->ob_sval; in bytes_from_buffer()
/third_party/python/Lib/test/
Dclinic.test249 a: PyBytesObject
263 test_PyBytesObject_converter_impl(PyObject *module, PyBytesObject *a);
269 PyBytesObject *a;
275 a = (PyBytesObject *)arg;
283 test_PyBytesObject_converter_impl(PyObject *module, PyBytesObject *a)
3144 co_lnotab: PyBytesObject(c_default="(PyBytesObject *)self->co_lnotab") = None
3157 test_keyword_only_parameter_impl(PyObject *module, PyBytesObject *co_lnotab);
3167 PyBytesObject *co_lnotab = (PyBytesObject *)self->co_lnotab;
3180 co_lnotab = (PyBytesObject *)args[0];
3189 test_keyword_only_parameter_impl(PyObject *module, PyBytesObject *co_lnotab)
/third_party/python/Misc/
Dgdbinit61 set $__p = (unsigned char *)((PyBytesObject *)$__co->co_lnotab)->ob_sval
DHISTORY15359 - Issue #4445: Replace "sizeof(PyBytesObject)" with
15360 "offsetof(PyBytesObject, ob_sval) + 1" when allocating memory for
DNEWS3377 ``PyBytesObject.ob_shash`` for bytes subclasses.
4038 - bpo-46864: Deprecate ``PyBytesObject.ob_shash``. It will be removed in
/third_party/python/Modules/clinic/
D_testclinic.c.h64 bytes_object_converter_impl(PyObject *module, PyBytesObject *a);
70 PyBytesObject *a; in bytes_object_converter()
76 a = (PyBytesObject *)arg; in bytes_object_converter()
/third_party/python/Doc/whatsnew/
D2.6.rst981 to :c:type:`PyBytesObject`. Python 2.6 uses ``#define``
982 to support using the names :c:func:`PyBytesObject`,
D3.11.rst2584 * Deprecate the ``ob_shash`` member of the :c:type:`PyBytesObject`. Use :c:func:`PyObject_Hash` ins…
/third_party/python/Doc/howto/
Dclinic.rst848 ``'S'`` ``PyBytesObject``