Home
last modified time | relevance | path

Searched refs:PyBytesObject (Results 1 – 20 of 20) 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 *const *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 *const *args, Py_ssize_t nargs, PyObject *kwnames) in bytes_rsplit()
190 bytes_strip_impl(PyBytesObject *self, PyObject *bytes);
193 bytes_strip(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs) in bytes_strip()
[all …]
/external/python/cpython2/Objects/
Dbytesobject.c24 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()
[all …]
Dbytearrayobject.c35 *value = Py_CHARMASK(((PyBytesObject*)arg)->ob_sval[0]); in _getbytevalue()
/external/python/cpython3/Objects/
Dbytesobject.c24 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()
[all …]
Dbytearrayobject.c2020 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/Lib/test/
Dclinic.test182 a: PyBytesObject
196 test_PyBytesObject_converter_impl(PyObject *module, PyBytesObject *a);
202 PyBytesObject *a;
214 test_PyBytesObject_converter_impl(PyObject *module, PyBytesObject *a)
/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.rst841 *result* must be a :c:type:`PyBytesObject*` which must be released when it is
/external/python/cpython3/Python/
Dmarshal.c1621 wf.ptr = wf.buf = PyBytes_AS_STRING((PyBytesObject *)wf.str); in PyMarshal_WriteObjectToString()
1632 char *base = PyBytes_AS_STRING((PyBytesObject *)wf.str); in PyMarshal_WriteObjectToString()
/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.rst849 ``'S'`` ``PyBytesObject``