Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/clinic/
Dbytesobject.c.h23 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
26 bytes_split(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) in bytes_split()
61 bytes_partition_impl(PyBytesObject *self, Py_buffer *sep);
64 bytes_partition(PyBytesObject *self, PyObject *arg) in bytes_partition()
100 bytes_rpartition_impl(PyBytesObject *self, Py_buffer *sep);
103 bytes_rpartition(PyBytesObject *self, PyObject *arg) in bytes_rpartition()
142 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
145 bytes_rsplit(PyBytesObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) in bytes_rsplit()
190 bytes_strip_impl(PyBytesObject *self, PyObject *bytes);
193 bytes_strip(PyBytesObject *self, PyObject *args) in bytes_strip()
[all …]
/external/python/cpython3/Objects/
Dbytesobject.c22 static PyBytesObject *characters[UCHAR_MAX + 1];
23 static PyBytesObject *nullstring;
31 #define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1)
62 PyBytesObject *op; in _PyBytes_FromSize()
81 op = (PyBytesObject *)PyObject_Calloc(1, PyBytesObject_SIZE + size); in _PyBytes_FromSize()
83 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in _PyBytes_FromSize()
101 PyBytesObject *op; in PyBytes_FromStringAndSize()
117 op = (PyBytesObject *)_PyBytes_FromSize(size, 0); in PyBytes_FromStringAndSize()
136 PyBytesObject *op; in PyBytes_FromString()
161 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + size); in PyBytes_FromString()
[all …]
Dbytearrayobject.c2005 bytearray_hex(PyBytesObject *self) in bytearray_hex()
/external/python/cpython3/PC/clinic/
D_testconsole.c.h18 PyBytesObject *s);
27 PyBytesObject *s; in _testconsole_write_input()
/external/python/cpython3/Include/
Dbytesobject.h41 } PyBytesObject; typedef
88 (((PyBytesObject *)(op))->ob_sval))
/external/python/cpython3/Objects/stringlib/
Dstringdefs.h11 #define STRINGLIB_OBJECT PyBytesObject
/external/python/cpython2/Include/
Dbytesobject.h1 #define PyBytesObject PyStringObject macro
/external/python/cpython3/PC/
D_testconsole.c45 PyBytesObject *s) in _testconsole_write_input_impl()
/external/python/cpython3/Misc/
Dgdbinit55 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
/external/python/cpython3/Doc/c-api/
Dbytes.rst14 .. c:type:: PyBytesObject
Darg.rst131 ``S`` (:class:`bytes`) [PyBytesObject \*]
Dunicode.rst819 *result* must be a :c:type:`PyBytesObject*` which must be released when it is
/external/python/cpython3/Python/
Dmarshal.c1600 wf.ptr = wf.buf = PyBytes_AS_STRING((PyBytesObject *)wf.str); in PyMarshal_WriteObjectToString()
1611 char *base = PyBytes_AS_STRING((PyBytesObject *)wf.str); in PyMarshal_WriteObjectToString()
/external/python/cpython2/Objects/
Dbytearrayobject.c35 *value = Py_CHARMASK(((PyBytesObject*)arg)->ob_sval[0]); in _getbytevalue()
/external/python/cpython2/Doc/whatsnew/
D2.6.rst977 to :c:type:`PyBytesObject`. Python 2.6 uses ``#define``
978 to support using the names :c:func:`PyBytesObject`,
/external/python/cpython3/Doc/whatsnew/
D2.6.rst981 to :c:type:`PyBytesObject`. Python 2.6 uses ``#define``
982 to support using the names :c:func:`PyBytesObject`,
/external/python/cpython3/Doc/howto/
Dclinic.rst845 ``'S'`` ``PyBytesObject``