Home
last modified time | relevance | path

Searched refs:PyBytes_GET_SIZE (Results 1 – 25 of 82) sorted by relevance

1234

/external/python/cpython3/Objects/
Dbytesobject.c498 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in byte_converter()
550 *plen = PyBytes_GET_SIZE(v); in format_obj()
575 *plen = PyBytes_GET_SIZE(result); in format_obj()
585 *plen = PyBytes_GET_SIZE(result); in format_obj()
930 len = PyBytes_GET_SIZE(temp); in _PyBytes_FormatEx()
1109 PyBytes_GET_SIZE(w)); in _PyBytes_DecodeEscapeRecode()
1307 *len = PyBytes_GET_SIZE(obj); in PyBytes_AsStringAndSize()
1308 else if (strlen(*s) != (size_t)PyBytes_GET_SIZE(obj)) { in PyBytes_AsStringAndSize()
1531 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains()
1658 i += PyBytes_GET_SIZE(self); in bytes_subscript()
[all …]
Dfileobject.c79 Py_ssize_t len = PyBytes_GET_SIZE(result); in PyFile_GetLine()
389 n = PyBytes_GET_SIZE(bytes); in stdprinter_write()
/external/python/cpython2/Objects/
Dbytesobject.c491 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.c122 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()
420 avail = (size_t) (PyBytes_GET_SIZE(result) - data_size); in decompress_buf()
440 if (data_size == PyBytes_GET_SIZE(result) && in decompress_buf()
446 if (data_size != PyBytes_GET_SIZE(result)) in decompress_buf()
D_lzmamodule.c133 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()
883 lzs->avail_out = PyBytes_GET_SIZE(result); in decompress_buf()
912 lzs->avail_out = PyBytes_GET_SIZE(result) - data_size; in decompress_buf()
917 if (data_size != PyBytes_GET_SIZE(result)) in decompress_buf()
D_dbmmodule.c263 key.dsize = PyBytes_GET_SIZE(arg); in dbm_contains()
468 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
D_gdbmmodule.c357 key.dsize = PyBytes_GET_SIZE(arg); in dbm_contains()
637 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
/external/python/cpython3/Modules/_io/
Diobase.c576 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()
Dbytesio.c112 size_t alloc = PyBytes_GET_SIZE(self->buf); in resize_buffer()
169 if (endpos > (size_t)PyBytes_GET_SIZE(self->buf)) { in write_bytes()
312 if (self->string_size != PyBytes_GET_SIZE(self->buf)) { in _io_BytesIO_getvalue_impl()
364 self->pos == 0 && size == PyBytes_GET_SIZE(self->buf) && in read_bytes()
925 self->string_size = PyBytes_GET_SIZE(initvalue); in _io_BytesIO___init___impl()
Dwinconsoleio.c890 if (bytes_size < (size_t)PyBytes_GET_SIZE(bytes)) { in _io__WindowsConsoleIO_readall_impl()
934 bytes_size = readinto(self, PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes)); in _io__WindowsConsoleIO_read_impl()
940 if (bytes_size < PyBytes_GET_SIZE(bytes)) { in _io__WindowsConsoleIO_read_impl()
/external/python/cpython2/Modules/_io/
Diobase.c496 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()
Dfileio.c290 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/Objects/stringlib/clinic/
Dtransmogrify.h.h96 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { in stringlib_ljust()
157 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { in stringlib_rjust()
218 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { in stringlib_center()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c173 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()
1467 endoffile = (PyBytes_GET_SIZE(cres) == 0); in mbstreamreader_iread()
1473 if (PyBytes_GET_SIZE(cres) > PY_SSIZE_T_MAX - self->pendingsize) { in mbstreamreader_iread()
1477 rsize = PyBytes_GET_SIZE(cres) + self->pendingsize; in mbstreamreader_iread()
1485 PyBytes_GET_SIZE(cres)); in mbstreamreader_iread()
1491 rsize = PyBytes_GET_SIZE(cres); in mbstreamreader_iread()
/external/python/cpython3/Objects/stringlib/
Dstringdefs.h22 #define STRINGLIB_LEN PyBytes_GET_SIZE
Djoin.h66 buffers[i].len = PyBytes_GET_SIZE(item); in STRINGLIB()
/external/python/cpython2/Include/
Dbytesobject.h8 #define PyBytes_GET_SIZE PyString_GET_SIZE macro
/external/python/cpython3/PC/
D_testconsole.c56 DWORD size = (DWORD)PyBytes_GET_SIZE(s) / sizeof(wchar_t); in _testconsole_write_input_impl()
/external/python/cpython3/Include/
Dbytesobject.h89 #define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op)) macro
/external/python/cpython3/Programs/
D_freeze_importlib.c116 data_size = PyBytes_GET_SIZE(marshalled); in main()
/external/python/cpython3/PC/clinic/
Dmsvcrtmodule.c.h371 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in msvcrt_putch()
445 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in msvcrt_ungetch()
/external/python/cpython3/Python/
Dpeephole.c251 tabsiz = PyBytes_GET_SIZE(lnotab_obj); in PyCode_Optimize()
265 Py_ssize_t codesize = PyBytes_GET_SIZE(code); in PyCode_Optimize()
/external/python/cpython3/Lib/test/
Dclinic.test503 if (PyBytes_Check(args[0]) && PyBytes_GET_SIZE(args[0]) == 1) {
516 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) {
529 if (PyBytes_Check(args[2]) && PyBytes_GET_SIZE(args[2]) == 1) {
542 if (PyBytes_Check(args[3]) && PyBytes_GET_SIZE(args[3]) == 1) {
555 if (PyBytes_Check(args[4]) && PyBytes_GET_SIZE(args[4]) == 1) {
568 if (PyBytes_Check(args[5]) && PyBytes_GET_SIZE(args[5]) == 1) {
581 if (PyBytes_Check(args[6]) && PyBytes_GET_SIZE(args[6]) == 1) {
594 if (PyBytes_Check(args[7]) && PyBytes_GET_SIZE(args[7]) == 1) {
607 if (PyBytes_Check(args[8]) && PyBytes_GET_SIZE(args[8]) == 1) {
620 if (PyBytes_Check(args[9]) && PyBytes_GET_SIZE(args[9]) == 1) {
[all …]
/external/libxml2/python/
Dtypes.c627 PyBytes_GET_SIZE(obj)); in libxml_xmlXPathObjectPtrConvert()
647 PyBytes_GET_SIZE(b)); in libxml_xmlXPathObjectPtrConvert()
Dlibxml_wrap.h36 #define PyBytes_GET_SIZE PyString_GET_SIZE macro

1234