Home
last modified time | relevance | path

Searched refs:PyBytes_Size (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython2/Include/
Dbytesobject.h15 #define PyBytes_Size PyString_Size macro
/external/python/cpython3/Include/
Dbytesobject.h58 PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *);
/external/python/cpython3/Doc/c-api/
Dbytes.rst127 .. c:function:: Py_ssize_t PyBytes_Size(PyObject *o)
134 Macro form of :c:func:`PyBytes_Size` but without error checking.
/external/libxml2/python/
Dlibxml_wrap.h33 #define PyBytes_Size PyString_Size macro
Dlibxml.c294 lenread = PyBytes_Size(ret); in xmlPythonFileReadRaw()
314 lenread = PyBytes_Size(b); in xmlPythonFileReadRaw()
359 lenread = PyBytes_Size(ret); in xmlPythonFileRead()
379 lenread = PyBytes_Size(b); in xmlPythonFileRead()
/external/python/cpython3/Modules/
Dzipimport.c1274 Py_ssize_t size = PyBytes_Size(data); in unmarshal_code()
1333 buf = (char *)PyMem_Malloc(PyBytes_Size(source) + 2); in normalize_line_endings()
Dtermios.c179 if (PyBytes_Check(v) && PyBytes_Size(v) == 1) in termios_tcsetattr()
Dmmapmodule.c876 if (! (PyBytes_Check(v) && PyBytes_Size(v)==1) ) { in mmap_ass_item()
D_cursesmodule.c214 if(PyBytes_Check(obj) && PyBytes_Size(obj) == 1) { in PyCurses_ConvertToChtype()
307 else if(PyBytes_Check(obj) && PyBytes_Size(obj) == 1) { in PyCurses_ConvertToCchar_t()
D_struct.c549 if (!PyBytes_Check(v) || PyBytes_Size(v) != 1) { in np_char()
Dsocketmodule.c1490 len = PyBytes_Size(obj); in idna_converter()
/external/python/cpython3/PC/
Dpython3.def35 PyBytes_Size=python36.PyBytes_Size
/external/python/cpython3/Python/
Dmarshal.c101 size = PyBytes_Size(p->str); in w_reserve()
1601 wf.end = wf.ptr + PyBytes_Size(wf.str); in PyMarshal_WriteObjectToString()
Dgetargs.c841 if (PyBytes_Check(arg) && PyBytes_Size(arg) == 1) in convertsimple()
/external/python/cpython3/Objects/
Dcodeobject.c753 Py_ssize_t size = PyBytes_Size(co->co_lnotab) / 2; in PyCode_Addr2Line()
Dbytesobject.c1257 PyBytes_Size(PyObject *op) in PyBytes_Size() function
Dunicodeobject.c7467 const Py_ssize_t n = PyBytes_Size(*outbytes); in encode_code_page_strict()
7569 Py_ssize_t n = PyBytes_Size(*outbytes); in encode_code_page_errors()
8482 Py_ssize_t outsize = PyBytes_Size(*res); in charmap_encoding_error()
8484 repsize = PyBytes_Size(repunicode); in charmap_encoding_error()
/external/python/cpython3/Doc/faq/
Dextending.rst87 For bytes, :c:func:`PyBytes_Size` returns its length and
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c1702 if (PyBytes_Size(pwrt) > 0) { in _multibytecodec_MultibyteStreamWriter_reset_impl()
/external/python/cpython2/Modules/_io/
Dtextio.c1444 eof = (PyBytes_Size(input_chunk) == 0); in textiowrapper_read_chunk()