/external/python/cpython3/Objects/ |
D | bytesobject.c | 497 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in byte_converter() 549 *plen = PyBytes_GET_SIZE(v); in format_obj() 574 *plen = PyBytes_GET_SIZE(result); in format_obj() 584 *plen = PyBytes_GET_SIZE(result); in format_obj() 932 len = PyBytes_GET_SIZE(temp); in _PyBytes_FormatEx() 1119 PyBytes_GET_SIZE(w)); in _PyBytes_DecodeEscapeRecode() 1317 *len = PyBytes_GET_SIZE(obj); in PyBytes_AsStringAndSize() 1318 else if (strlen(*s) != (size_t)PyBytes_GET_SIZE(obj)) { in PyBytes_AsStringAndSize() 1539 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains() 1667 i += PyBytes_GET_SIZE(self); in bytes_subscript() [all …]
|
D | fileobject.c | 77 Py_ssize_t len = PyBytes_GET_SIZE(result); in PyFile_GetLine() 381 n = PyBytes_GET_SIZE(bytes); in stdprinter_write()
|
/external/python/cpython2/Objects/ |
D | bytesobject.c | 491 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in byte_converter() 543 *plen = PyBytes_GET_SIZE(v); in format_obj() 568 *plen = PyBytes_GET_SIZE(result); in format_obj() 578 *plen = PyBytes_GET_SIZE(result); in format_obj() 926 len = PyBytes_GET_SIZE(temp); in _PyBytes_FormatEx() 1113 PyBytes_GET_SIZE(w)); in _PyBytes_DecodeEscapeRecode() 1311 *len = PyBytes_GET_SIZE(obj); in PyBytes_AsStringAndSize() 1312 else if (strlen(*s) != (size_t)PyBytes_GET_SIZE(obj)) { in PyBytes_AsStringAndSize() 1533 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains() 1674 i += PyBytes_GET_SIZE(self); in bytes_subscript() [all …]
|
/external/python/cpython3/Modules/ |
D | _bz2module.c | 122 size_t size = PyBytes_GET_SIZE(*buf); in grow_buffer() 170 size_t buffer_left = PyBytes_GET_SIZE(result) - data_size; in compress() 175 buffer_left = PyBytes_GET_SIZE(result) - data_size; in compress() 192 if (data_size != (size_t)PyBytes_GET_SIZE(result)) in compress() 429 avail = (size_t) (PyBytes_GET_SIZE(result) - data_size); in decompress_buf() 449 if (data_size == PyBytes_GET_SIZE(result) && in decompress_buf() 455 if (data_size != PyBytes_GET_SIZE(result)) in decompress_buf()
|
D | _lzmamodule.c | 133 Py_ssize_t size = PyBytes_GET_SIZE(*buf); in grow_buffer() 506 c->lzs.avail_out = PyBytes_GET_SIZE(result); in compress() 525 c->lzs.avail_out = PyBytes_GET_SIZE(result) - data_size; in compress() 528 if (data_size != PyBytes_GET_SIZE(result)) in compress() 895 lzs->avail_out = PyBytes_GET_SIZE(result); in decompress_buf() 919 lzs->avail_out = PyBytes_GET_SIZE(result) - data_size; in decompress_buf() 922 if (data_size != PyBytes_GET_SIZE(result)) in decompress_buf()
|
D | _dbmmodule.c | 254 key.dsize = PyBytes_GET_SIZE(arg); in dbm_contains() 459 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
|
D | _gdbmmodule.c | 334 key.dsize = PyBytes_GET_SIZE(arg); in dbm_contains() 615 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
|
/external/python/cpython2/Modules/_io/ |
D | iobase.c | 496 if (PyBytes_GET_SIZE(readahead) > 0) { in iobase_readline() 501 if (n >= PyBytes_GET_SIZE(readahead) || n >= limit) in iobase_readline() 509 if (n >= PyBytes_GET_SIZE(readahead)) in iobase_readline() 536 if (PyBytes_GET_SIZE(b) == 0) { in iobase_readline() 542 if (PyByteArray_Resize(buffer, old_size + PyBytes_GET_SIZE(b)) < 0) { in iobase_readline() 547 PyBytes_AS_STRING(b), PyBytes_GET_SIZE(b)); in iobase_readline() 878 if (PyBytes_GET_SIZE(data) == 0) { in rawiobase_readall()
|
D | fileio.c | 290 if (strlen(name) != (size_t)PyBytes_GET_SIZE(stringobj)) { in fileio_init() 600 if (PyBytes_GET_SIZE(result) < (Py_ssize_t)newsize) { in fileio_readall() 642 if (PyBytes_GET_SIZE(result) > total) { in fileio_readall()
|
/external/python/cpython3/Modules/_io/ |
D | iobase.c | 563 if (PyBytes_GET_SIZE(readahead) > 0) { in _io__IOBase_readline_impl() 568 if (n >= PyBytes_GET_SIZE(readahead) || n >= limit) in _io__IOBase_readline_impl() 576 if (n >= PyBytes_GET_SIZE(readahead)) in _io__IOBase_readline_impl() 603 if (PyBytes_GET_SIZE(b) == 0) { in _io__IOBase_readline_impl() 609 if (PyByteArray_Resize(buffer, old_size + PyBytes_GET_SIZE(b)) < 0) { in _io__IOBase_readline_impl() 614 PyBytes_AS_STRING(b), PyBytes_GET_SIZE(b)); in _io__IOBase_readline_impl() 977 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() 924 self->string_size = PyBytes_GET_SIZE(initvalue); in _io_BytesIO___init___impl()
|
D | winconsoleio.c | 889 if (bytes_size < (size_t)PyBytes_GET_SIZE(bytes)) { in _io__WindowsConsoleIO_readall_impl() 933 bytes_size = readinto(self, PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes)); in _io__WindowsConsoleIO_read_impl() 939 if (bytes_size < PyBytes_GET_SIZE(bytes)) { in _io__WindowsConsoleIO_read_impl()
|
D | bufferedio.c | 80 len = PyBytes_GET_SIZE(data); in _bufferediobase_readinto_generic() 1376 if (PyBytes_GET_SIZE(line) == 0) { in buffered_iternext() 1585 if (data == Py_None || PyBytes_GET_SIZE(data) == 0) { in _bufferedreader_read_all() 1596 current_size += PyBytes_GET_SIZE(data); in _bufferedreader_read_all() 1598 self->abs_pos += PyBytes_GET_SIZE(data); in _bufferedreader_read_all()
|
D | fileio.c | 732 if (PyBytes_GET_SIZE(result) < (Py_ssize_t)bufsize) { 759 if (PyBytes_GET_SIZE(result) > bytes_read) {
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 173 orgsize = PyBytes_GET_SIZE(buf->outobj); in expand_encodebuffer() 186 + PyBytes_GET_SIZE(buf->outobj); in expand_encodebuffer() 327 retstrsize = PyBytes_GET_SIZE(retstr); in multibytecodec_encerror() 496 buf.outbuf_end = buf.outbuf + PyBytes_GET_SIZE(buf.outobj); in multibytecodec_encode() 532 if (finalsize != PyBytes_GET_SIZE(buf.outobj)) in multibytecodec_encode() 1296 endoffile = (PyBytes_GET_SIZE(cres) == 0); in mbstreamreader_iread() 1302 if (PyBytes_GET_SIZE(cres) > PY_SSIZE_T_MAX - self->pendingsize) { in mbstreamreader_iread() 1306 rsize = PyBytes_GET_SIZE(cres) + self->pendingsize; in mbstreamreader_iread() 1314 PyBytes_GET_SIZE(cres)); in mbstreamreader_iread() 1320 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/Include/ |
D | bytesobject.h | 89 #define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op)) macro
|
/external/python/cpython3/Programs/ |
D | _freeze_importlib.c | 116 data_size = PyBytes_GET_SIZE(marshalled); in main()
|
/external/python/cpython3/Python/ |
D | peephole.c | 244 tabsiz = PyBytes_GET_SIZE(lnotab_obj); in PyCode_Optimize() 254 codelen = PyBytes_GET_SIZE(code); in PyCode_Optimize()
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | py_seq_tensor.cc | 426 out->assign(PyBytes_AS_STRING(v), PyBytes_GET_SIZE(v)); in ConvertOneString() 439 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
|