/third_party/python/Objects/ |
D | bytesobject.c | 521 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in byte_converter() 562 *plen = PyBytes_GET_SIZE(v); in format_obj() 587 *plen = PyBytes_GET_SIZE(result); in format_obj() 597 *plen = PyBytes_GET_SIZE(result); in format_obj() 942 len = PyBytes_GET_SIZE(temp); in _PyBytes_FormatEx() 1263 *len = PyBytes_GET_SIZE(obj); in PyBytes_AsStringAndSize() 1264 else if (strlen(*s) != (size_t)PyBytes_GET_SIZE(obj)) { in PyBytes_AsStringAndSize() 1493 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains() 1602 i += PyBytes_GET_SIZE(self); in bytes_subscript() 1603 if (i < 0 || i >= PyBytes_GET_SIZE(self)) { in bytes_subscript() [all …]
|
D | fileobject.c | 80 Py_ssize_t len = PyBytes_GET_SIZE(result); in PyFile_GetLine() 378 n = PyBytes_GET_SIZE(bytes); in stdprinter_write()
|
D | codeobject.c | 172 if (PyBytes_GET_SIZE(code) > INT_MAX) { in PyCode_NewWithPosOnlyArgs() 406 Py_ssize_t len = PyBytes_GET_SIZE(*bytes); in emit_pair() 691 res += PyBytes_GET_SIZE(co->co_code) / sizeof(_Py_CODEUNIT); in code_sizeof() 1251 assert(addrq >= 0 && addrq < PyBytes_GET_SIZE(co->co_code)); in PyCode_Addr2Line() 1272 Py_ssize_t length = PyBytes_GET_SIZE(co->co_linetable); in _PyCode_InitAddressRange()
|
/third_party/python/Modules/_io/ |
D | iobase.c | 576 if (PyBytes_GET_SIZE(readahead) > 0) { in _io__IOBase_readline_impl() 581 if (n >= PyBytes_GET_SIZE(readahead) || n >= limit) in _io__IOBase_readline_impl() 589 if (n >= PyBytes_GET_SIZE(readahead)) in _io__IOBase_readline_impl() 616 if (PyBytes_GET_SIZE(b) == 0) { in _io__IOBase_readline_impl() 622 if (PyByteArray_Resize(buffer, old_size + PyBytes_GET_SIZE(b)) < 0) { in _io__IOBase_readline_impl() 627 PyBytes_AS_STRING(b), PyBytes_GET_SIZE(b)); in _io__IOBase_readline_impl() 995 if (PyBytes_GET_SIZE(data) == 0) { in _io__RawIOBase_readall_impl()
|
D | bytesio.c | 129 size_t alloc = PyBytes_GET_SIZE(self->buf); in resize_buffer() 200 if (endpos > (size_t)PyBytes_GET_SIZE(self->buf)) { in write_bytes() 349 if (self->string_size != PyBytes_GET_SIZE(self->buf)) { in _io_BytesIO_getvalue_impl() 401 self->pos == 0 && size == PyBytes_GET_SIZE(self->buf) && in read_bytes() 948 self->string_size = PyBytes_GET_SIZE(initvalue); in _io_BytesIO___init___impl()
|
D | winconsoleio.c | 882 if (bytes_size < (size_t)PyBytes_GET_SIZE(bytes)) { in _io__WindowsConsoleIO_readall_impl() 926 bytes_size = readinto(self, PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes)); in _io__WindowsConsoleIO_read_impl() 932 if (bytes_size < PyBytes_GET_SIZE(bytes)) { in _io__WindowsConsoleIO_read_impl()
|
D | fileio.c | 744 if (PyBytes_GET_SIZE(result) < (Py_ssize_t)bufsize) { 771 if (PyBytes_GET_SIZE(result) > bytes_read) {
|
D | bufferedio.c | 79 len = PyBytes_GET_SIZE(data); in _bufferediobase_readinto_generic() 1371 if (PyBytes_GET_SIZE(line) == 0) { in buffered_iternext() 1591 if (data == Py_None || PyBytes_GET_SIZE(data) == 0) { in _bufferedreader_read_all() 1602 current_size += PyBytes_GET_SIZE(data); in _bufferedreader_read_all() 1604 self->abs_pos += PyBytes_GET_SIZE(data); in _bufferedreader_read_all()
|
/third_party/python/Objects/stringlib/clinic/ |
D | transmogrify.h.h | 86 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { in stringlib_ljust() 142 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { in stringlib_rjust() 198 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { in stringlib_center()
|
/third_party/python/Objects/stringlib/ |
D | stringdefs.h | 21 #define STRINGLIB_LEN PyBytes_GET_SIZE
|
D | join.h | 69 buffers[i].len = PyBytes_GET_SIZE(item); in STRINGLIB()
|
/third_party/python/Modules/cjkcodecs/ |
D | multibytecodec.c | 196 orgsize = PyBytes_GET_SIZE(buf->outobj); in expand_encodebuffer() 209 + PyBytes_GET_SIZE(buf->outobj); in expand_encodebuffer() 350 retstrsize = PyBytes_GET_SIZE(retstr); in multibytecodec_encerror() 519 buf.outbuf_end = buf.outbuf + PyBytes_GET_SIZE(buf.outobj); in multibytecodec_encode() 555 if (finalsize != PyBytes_GET_SIZE(buf.outobj)) in multibytecodec_encode() 1428 endoffile = (PyBytes_GET_SIZE(cres) == 0); in mbstreamreader_iread() 1434 if (PyBytes_GET_SIZE(cres) > PY_SSIZE_T_MAX - self->pendingsize) { in mbstreamreader_iread() 1438 rsize = PyBytes_GET_SIZE(cres) + self->pendingsize; in mbstreamreader_iread() 1446 PyBytes_GET_SIZE(cres)); in mbstreamreader_iread() 1452 rsize = PyBytes_GET_SIZE(cres); in mbstreamreader_iread()
|
/third_party/python/Include/cpython/ |
D | bytesobject.h | 34 #define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op)) macro
|
/third_party/python/PC/ |
D | _testconsole.c | 56 DWORD size = (DWORD)PyBytes_GET_SIZE(s) / sizeof(wchar_t); in _testconsole_write_input_impl()
|
/third_party/python/Programs/ |
D | _freeze_importlib.c | 116 data_size = PyBytes_GET_SIZE(marshalled); in main()
|
/third_party/python/PC/clinic/ |
D | msvcrtmodule.c.h | 341 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in msvcrt_putch() 415 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in msvcrt_ungetch()
|
/third_party/python/Modules/ |
D | _dbmmodule.c | 292 key.dsize = PyBytes_GET_SIZE(arg); in dbm_contains() 488 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
|
D | _gdbmmodule.c | 402 key.dsize = PyBytes_GET_SIZE(arg); in gdbm_contains() 680 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
|
D | _elementtree.c | 1157 const Py_ssize_t len = PyBytes_GET_SIZE(tag); in checkpath() 1433 if (PyBytes_GET_SIZE(tag) == 1 && *PyBytes_AS_STRING(tag) == '*') in _elementtree_Element_iter_impl() 2760 PyBytes_CheckExact(data) && PyBytes_GET_SIZE(data) == 1) { in treebuilder_handle_data() 2764 Py_ssize_t size = PyBytes_GET_SIZE(self->data); in treebuilder_handle_data() 3983 else if (!PyBytes_CheckExact(buffer) || PyBytes_GET_SIZE(buffer) == 0) { in _elementtree_XMLParser__parse_whole() 3988 if (PyBytes_GET_SIZE(buffer) > INT_MAX) { in _elementtree_XMLParser__parse_whole() 3995 self, PyBytes_AS_STRING(buffer), (int)PyBytes_GET_SIZE(buffer), 0 in _elementtree_XMLParser__parse_whole()
|
D | _tkinter.c | 1070 if (PyBytes_GET_SIZE(value) >= INT_MAX) { in AsObj() 1075 (int)PyBytes_GET_SIZE(value)); in AsObj() 1173 size = PyBytes_GET_SIZE(encoded); in AsObj() 1757 if (PyBytes_GET_SIZE(in) > INT_MAX) { in varname_converter() 1762 if (strlen(s) != (size_t)PyBytes_GET_SIZE(in)) { in varname_converter()
|
/third_party/python/Lib/test/ |
D | clinic.test | 498 if (PyBytes_Check(args[0]) && PyBytes_GET_SIZE(args[0]) == 1) { 511 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { 524 if (PyBytes_Check(args[2]) && PyBytes_GET_SIZE(args[2]) == 1) { 537 if (PyBytes_Check(args[3]) && PyBytes_GET_SIZE(args[3]) == 1) { 550 if (PyBytes_Check(args[4]) && PyBytes_GET_SIZE(args[4]) == 1) { 563 if (PyBytes_Check(args[5]) && PyBytes_GET_SIZE(args[5]) == 1) { 576 if (PyBytes_Check(args[6]) && PyBytes_GET_SIZE(args[6]) == 1) { 589 if (PyBytes_Check(args[7]) && PyBytes_GET_SIZE(args[7]) == 1) { 602 if (PyBytes_Check(args[8]) && PyBytes_GET_SIZE(args[8]) == 1) { 615 if (PyBytes_Check(args[9]) && PyBytes_GET_SIZE(args[9]) == 1) { [all …]
|
/third_party/libxml2/python/ |
D | libxml_wrap.h | 36 #define PyBytes_GET_SIZE PyString_GET_SIZE macro
|
D | types.c | 751 PyBytes_GET_SIZE(obj)); in libxml_xmlXPathObjectPtrConvert() 771 PyBytes_GET_SIZE(b)); in libxml_xmlXPathObjectPtrConvert()
|
/third_party/python/Python/ |
D | marshal.c | 117 size = PyBytes_GET_SIZE(p->str); in w_reserve() 422 w_pstring(PyBytes_AS_STRING(v), PyBytes_GET_SIZE(v), p); in w_complex_object() 456 w_pstring(PyBytes_AS_STRING(utf8), PyBytes_GET_SIZE(utf8), p); in w_complex_object() 1582 wf.end = wf.ptr + PyBytes_GET_SIZE(wf.str); in PyMarshal_WriteObjectToString()
|
/third_party/PyYAML/yaml/ |
D | _yaml.pxd | 21 int PyBytes_GET_SIZE(object o)
|