/external/python/cpython3/Objects/ |
D | bytesobject.c | 489 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in byte_converter() 539 *plen = PyBytes_GET_SIZE(v); in format_obj() 564 *plen = PyBytes_GET_SIZE(result); in format_obj() 911 len = PyBytes_GET_SIZE(temp); in _PyBytes_FormatEx() 1098 PyBytes_GET_SIZE(w)); in _PyBytes_DecodeEscapeRecode() 1296 *len = PyBytes_GET_SIZE(obj); in PyBytes_AsStringAndSize() 1297 else if (strlen(*s) != (size_t)PyBytes_GET_SIZE(obj)) { in PyBytes_AsStringAndSize() 1518 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains() 1659 i += PyBytes_GET_SIZE(self); in bytes_subscript() 1660 if (i < 0 || i >= PyBytes_GET_SIZE(self)) { in bytes_subscript() [all …]
|
D | fileobject.c | 89 Py_ssize_t len = PyBytes_GET_SIZE(result); in PyFile_GetLine()
|
D | unicodeobject.c | 3071 if (PyBytes_GET_SIZE(obj) == 0) in PyUnicode_FromEncodedObject() 3074 PyBytes_AS_STRING(obj), PyBytes_GET_SIZE(obj), in PyUnicode_FromEncodedObject() 3885 size = PyBytes_GET_SIZE(output); in PyUnicode_FSConverter() 3943 PyBytes_GET_SIZE(path_bytes)); in PyUnicode_FSDecoder() 3988 _PyUnicode_UTF8(unicode) = PyObject_MALLOC(PyBytes_GET_SIZE(bytes) + 1); in PyUnicode_AsUTF8AndSize() 3994 _PyUnicode_UTF8_LENGTH(unicode) = PyBytes_GET_SIZE(bytes); in PyUnicode_AsUTF8AndSize() 4299 insize = PyBytes_GET_SIZE(inputobj); in unicode_decode_call_errorhandler_wchar() 4401 insize = PyBytes_GET_SIZE(inputobj); in unicode_decode_call_errorhandler_writer() 5445 repsize = PyBytes_GET_SIZE(rep); in _PyUnicode_EncodeUTF32() 5471 if (PyBytes_GET_SIZE(v) > PY_SSIZE_T_MAX - morebytes) { in _PyUnicode_EncodeUTF32() [all …]
|
D | object.c | 385 PyBytes_GET_SIZE(s), fp); in PyObject_Print() 394 PyBytes_GET_SIZE(t), fp); in PyObject_Print() 577 PyBytes_GET_SIZE(ascii), in PyObject_ASCII()
|
/external/python/cpython3/Modules/ |
D | _bz2module.c | 133 size_t size = PyBytes_GET_SIZE(*buf); in grow_buffer() 181 size_t buffer_left = PyBytes_GET_SIZE(result) - data_size; in compress() 186 buffer_left = PyBytes_GET_SIZE(result) - data_size; in compress() 203 if (data_size != (size_t)PyBytes_GET_SIZE(result)) in compress() 446 avail = (size_t) (PyBytes_GET_SIZE(result) - data_size); in decompress_buf() 466 if (data_size == PyBytes_GET_SIZE(result) && in decompress_buf() 472 if (data_size != PyBytes_GET_SIZE(result)) in decompress_buf()
|
D | _lzmamodule.c | 144 Py_ssize_t size = PyBytes_GET_SIZE(*buf); in grow_buffer() 517 c->lzs.avail_out = PyBytes_GET_SIZE(result); in compress() 536 c->lzs.avail_out = PyBytes_GET_SIZE(result) - data_size; in compress() 539 if (data_size != PyBytes_GET_SIZE(result)) in compress() 912 lzs->avail_out = PyBytes_GET_SIZE(result); in decompress_buf() 936 lzs->avail_out = PyBytes_GET_SIZE(result) - data_size; in decompress_buf() 939 if (data_size != PyBytes_GET_SIZE(result)) in decompress_buf()
|
D | _elementtree.c | 1094 for (i = 0; i < PyBytes_GET_SIZE(tag); i++) { in checkpath() 1407 if (PyBytes_GET_SIZE(tag) == 1 && *PyBytes_AS_STRING(tag) == '*') in _elementtree_Element_iter_impl() 2565 PyBytes_CheckExact(data) && PyBytes_GET_SIZE(data) == 1) { in treebuilder_handle_data() 2569 Py_ssize_t size = PyBytes_GET_SIZE(self->data); in treebuilder_handle_data() 3502 else if (!PyBytes_CheckExact(buffer) || PyBytes_GET_SIZE(buffer) == 0) { in _elementtree_XMLParser__parse_whole() 3507 if (PyBytes_GET_SIZE(buffer) > INT_MAX) { in _elementtree_XMLParser__parse_whole() 3514 self, PyBytes_AS_STRING(buffer), (int)PyBytes_GET_SIZE(buffer), 0 in _elementtree_XMLParser__parse_whole()
|
/external/python/cpython3/Modules/_io/ |
D | iobase.c | 542 if (PyBytes_GET_SIZE(readahead) > 0) { in _io__IOBase_readline_impl() 547 if (n >= PyBytes_GET_SIZE(readahead) || n >= limit) in _io__IOBase_readline_impl() 555 if (n >= PyBytes_GET_SIZE(readahead)) in _io__IOBase_readline_impl() 582 if (PyBytes_GET_SIZE(b) == 0) { in _io__IOBase_readline_impl() 588 if (PyByteArray_Resize(buffer, old_size + PyBytes_GET_SIZE(b)) < 0) { in _io__IOBase_readline_impl() 593 PyBytes_AS_STRING(b), PyBytes_GET_SIZE(b)); in _io__IOBase_readline_impl() 939 if (PyBytes_GET_SIZE(data) == 0) { in _io__RawIOBase_readall_impl()
|
D | bytesio.c | 111 size_t alloc = PyBytes_GET_SIZE(self->buf); in resize_buffer() 168 if (endpos > (size_t)PyBytes_GET_SIZE(self->buf)) { in write_bytes() 311 if (self->string_size != PyBytes_GET_SIZE(self->buf)) { in _io_BytesIO_getvalue_impl() 363 self->pos == 0 && size == PyBytes_GET_SIZE(self->buf) && in read_bytes() 971 self->string_size = PyBytes_GET_SIZE(initvalue); in _io_BytesIO___init___impl()
|
D | winconsoleio.c | 908 if (bytes_size < (size_t)PyBytes_GET_SIZE(bytes)) { in _io__WindowsConsoleIO_readall_impl() 952 bytes_size = readinto(self, PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes)); in _io__WindowsConsoleIO_read_impl() 958 if (bytes_size < PyBytes_GET_SIZE(bytes)) { in _io__WindowsConsoleIO_read_impl()
|
D | fileio.c | 737 if (PyBytes_GET_SIZE(result) < (Py_ssize_t)bufsize) { 764 if (PyBytes_GET_SIZE(result) > bytes_read) {
|
D | textio.c | 1337 self->pending_bytes_count += PyBytes_GET_SIZE(b); in _io_TextIOWrapper_write_impl() 2301 cookie.start_pos -= PyBytes_GET_SIZE(next_input); in _io_TextIOWrapper_tell_impl() 2335 dec_buffer_len = PyBytes_GET_SIZE(dec_buffer); \ in _io_TextIOWrapper_tell_impl() 2352 assert(skip_back <= PyBytes_GET_SIZE(next_input)); in _io_TextIOWrapper_tell_impl() 2397 input_end = input + PyBytes_GET_SIZE(next_input); in _io_TextIOWrapper_tell_impl()
|
/external/python/cpython2/Modules/_io/ |
D | iobase.c | 488 if (PyBytes_GET_SIZE(readahead) > 0) { in iobase_readline() 493 if (n >= PyBytes_GET_SIZE(readahead) || n >= limit) in iobase_readline() 501 if (n >= PyBytes_GET_SIZE(readahead)) in iobase_readline() 528 if (PyBytes_GET_SIZE(b) == 0) { in iobase_readline() 534 if (PyByteArray_Resize(buffer, old_size + PyBytes_GET_SIZE(b)) < 0) { in iobase_readline() 539 PyBytes_AS_STRING(b), PyBytes_GET_SIZE(b)); in iobase_readline() 856 if (PyBytes_GET_SIZE(data) == 0) { in rawiobase_readall()
|
D | fileio.c | 264 if (strlen(name) != (size_t)PyBytes_GET_SIZE(stringobj)) { in fileio_init() 564 if (PyBytes_GET_SIZE(result) < (Py_ssize_t)newsize) { in fileio_readall() 606 if (PyBytes_GET_SIZE(result) > total) { in fileio_readall()
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 169 orgsize = PyBytes_GET_SIZE(buf->outobj); in expand_encodebuffer() 182 + PyBytes_GET_SIZE(buf->outobj); in expand_encodebuffer() 323 retstrsize = PyBytes_GET_SIZE(retstr); in multibytecodec_encerror() 492 buf.outbuf_end = buf.outbuf + PyBytes_GET_SIZE(buf.outobj); in multibytecodec_encode() 528 if (finalsize != PyBytes_GET_SIZE(buf.outobj)) in multibytecodec_encode() 1292 endoffile = (PyBytes_GET_SIZE(cres) == 0); in mbstreamreader_iread() 1298 if (PyBytes_GET_SIZE(cres) > PY_SSIZE_T_MAX - self->pendingsize) { in mbstreamreader_iread() 1302 rsize = PyBytes_GET_SIZE(cres) + self->pendingsize; in mbstreamreader_iread() 1310 PyBytes_GET_SIZE(cres)); in mbstreamreader_iread() 1316 rsize = PyBytes_GET_SIZE(cres); in mbstreamreader_iread()
|
/external/python/cpython3/Objects/stringlib/ |
D | stringdefs.h | 22 #define STRINGLIB_LEN PyBytes_GET_SIZE
|
D | join.h | 66 buffers[i].len = PyBytes_GET_SIZE(item); in STRINGLIB()
|
/external/python/cpython2/Include/ |
D | bytesobject.h | 8 #define PyBytes_GET_SIZE PyString_GET_SIZE macro
|
/external/python/cpython3/PC/ |
D | _testconsole.c | 56 DWORD size = (DWORD)PyBytes_GET_SIZE(s) / sizeof(wchar_t); in _testconsole_write_input_impl()
|
/external/python/cpython3/Programs/ |
D | _freeze_importlib.c | 106 data_size = PyBytes_GET_SIZE(marshalled); in main()
|
/external/python/cpython3/Include/ |
D | bytesobject.h | 89 #define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op)) macro
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | py_seq_tensor.cc | 317 out->assign(PyBytes_AS_STRING(v), PyBytes_GET_SIZE(v)); in ConvertOneString() 330 out->assign(PyBytes_AS_STRING(py_str), PyBytes_GET_SIZE(py_str)); in ConvertOneString()
|
/external/libxml2/python/ |
D | types.c | 627 PyBytes_GET_SIZE(obj)); in libxml_xmlXPathObjectPtrConvert() 647 PyBytes_GET_SIZE(b)); in libxml_xmlXPathObjectPtrConvert()
|
D | libxml_wrap.h | 36 #define PyBytes_GET_SIZE PyString_GET_SIZE macro
|
/external/python/cpython3/Python/ |
D | peephole.c | 448 tabsiz = PyBytes_GET_SIZE(lnotab_obj); in PyCode_Optimize() 458 codelen = PyBytes_GET_SIZE(code); in PyCode_Optimize()
|