/external/python/cpython2/Lib/test/ |
D | multibytecodec_support.py | 161 for sizehint in [None] + range(1, 33) + \ 167 if sizehint is not None: 168 data = istream.read(sizehint) 181 for sizehint in [None, -1] + range(1, 33) + \ 187 data = istream.read(sizehint) 219 for sizehint in [None, -1] + range(1, 33) + \ 225 data = func(sizehint) 239 for sizehint in [None] + range(1, 33) + \ 245 if sizehint is not None: 246 data = func(sizehint)
|
D | test_codecs.py | 856 for sizehint in [None] + range(1, 11) + \ 861 if sizehint is not None: 862 data = istream.read(sizehint) 878 for sizehint in [None] + range(1, 11) + \ 883 if sizehint is not None: 884 data = istream.read(sizehint)
|
/external/python/cpython3/Lib/test/ |
D | multibytecodec_support.py | 175 for sizehint in [None] + list(range(1, 33)) + \ 181 if sizehint is not None: 182 data = istream.read(sizehint) 195 for sizehint in [None, -1] + list(range(1, 33)) + \ 201 data = istream.read(sizehint) 233 for sizehint in [None, -1] + list(range(1, 33)) + \ 239 data = func(sizehint) 253 for sizehint in [None] + list(range(1, 33)) + \ 259 if sizehint is not None: 260 data = func(sizehint)
|
D | test_epoll.py | 93 self.assertRaises(ValueError, select.epoll, sizehint=-2)
|
D | test_codecs.py | 1136 for sizehint in [None] + list(range(1, 11)) + \ 1141 if sizehint is not None: 1142 data = istream.read(sizehint) 1158 for sizehint in [None] + list(range(1, 11)) + \ 1163 if sizehint is not None: 1164 data = istream.read(sizehint)
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 1263 const char *method, Py_ssize_t sizehint) in mbstreamreader_iread() argument 1269 if (sizehint == 0) in mbstreamreader_iread() 1279 if (sizehint < 0) in mbstreamreader_iread() 1284 method, "i", sizehint); in mbstreamreader_iread() 1329 if (endoffile || sizehint < 0) { in mbstreamreader_iread() 1345 if (sizehint < 0 || buf.writer.pos != 0 || rsize == 0) in mbstreamreader_iread() 1348 sizehint = 1; /* read 1 more byte and retry */ in mbstreamreader_iread() 1437 Py_ssize_t sizehint; in _multibytecodec_MultibyteStreamReader_readlines_impl() local 1440 sizehint = -1; in _multibytecodec_MultibyteStreamReader_readlines_impl() 1442 sizehint = PyLong_AsSsize_t(sizehintobj); in _multibytecodec_MultibyteStreamReader_readlines_impl() [all …]
|
/external/python/cpython2/Modules/ |
D | bz2module.c | 601 int sizehint = -1; in BZ2File_readline() local 603 if (!PyArg_ParseTuple(args, "|i:readline", &sizehint)) in BZ2File_readline() 627 if (sizehint == 0) in BZ2File_readline() 630 ret = Util_GetLine(self, (sizehint < 0) ? 0 : sizehint); in BZ2File_readline() 649 long sizehint = 0; in BZ2File_readlines() local 664 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint)) in BZ2File_readlines() 702 sizehint = 0; in BZ2File_readlines() 759 if (sizehint > 0) in BZ2File_readlines() 760 if (totalread >= (size_t)sizehint) in BZ2File_readlines() 763 sizehint = 0; in BZ2File_readlines() [all …]
|
D | selectmodule.c | 770 newPyEpoll_Object(PyTypeObject *type, int sizehint, SOCKET fd) in newPyEpoll_Object() argument 774 if (sizehint == -1) { in newPyEpoll_Object() 775 sizehint = FD_SETSIZE-1; in newPyEpoll_Object() 777 else if (sizehint < 1) { in newPyEpoll_Object() 780 sizehint); in newPyEpoll_Object() 791 self->epfd = epoll_create(sizehint); in newPyEpoll_Object() 809 int sizehint = -1; in pyepoll_new() local 813 &sizehint)) in pyepoll_new() 816 return newPyEpoll_Object(type, sizehint, -1); in pyepoll_new()
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | multibytecodec.c | 1236 const char *method, Py_ssize_t sizehint) in mbstreamreader_iread() argument 1242 if (sizehint == 0) in mbstreamreader_iread() 1251 if (sizehint < 0) in mbstreamreader_iread() 1256 (char *)method, "i", sizehint); in mbstreamreader_iread() 1300 if (endoffile || sizehint < 0) { in mbstreamreader_iread() 1318 if (sizehint < 0 || finalsize != 0 || rsize == 0) in mbstreamreader_iread() 1321 sizehint = 1; /* read 1 more byte and retry */ in mbstreamreader_iread() 1385 Py_ssize_t sizehint; in mbstreamreader_readlines() local 1391 sizehint = -1; in mbstreamreader_readlines() 1393 sizehint = PyInt_AsSsize_t(sizehintobj); in mbstreamreader_readlines() [all …]
|
/external/python/cpython2/Lib/ |
D | codecs.py | 593 def readlines(self, sizehint=None, keepends=True): argument 694 def readlines(self, sizehint=None): argument 696 return self.reader.readlines(sizehint) 811 def readlines(self, sizehint=None): argument
|
D | socket.py | 515 def readlines(self, sizehint=0): argument 524 if sizehint and total >= sizehint:
|
D | StringIO.py | 168 def readlines(self, sizehint = 0): argument 182 if 0 < sizehint <= total:
|
D | mailbox.py | 1889 def readlines(self, sizehint=None): argument 1894 if sizehint is not None: 1895 sizehint -= len(line) 1896 if sizehint <= 0:
|
/external/python/cpython3/Lib/ |
D | codecs.py | 606 def readlines(self, sizehint=None, keepends=True): argument 707 def readlines(self, sizehint=None): argument 709 return self.reader.readlines(sizehint) 818 def readlines(self, sizehint=None): argument
|
D | mailbox.py | 1943 def readlines(self, sizehint=None): argument 1948 if sizehint is not None: 1949 sizehint -= len(line) 1950 if sizehint <= 0:
|
/external/python/cpython3/Lib/asyncio/ |
D | protocols.py | 133 def get_buffer(self, sizehint): argument
|
/external/python/cpython3/Modules/ |
D | selectmodule.c | 1257 newPyEpoll_Object(PyTypeObject *type, int sizehint, SOCKET fd) in newPyEpoll_Object() argument 1271 self->epfd = epoll_create(sizehint); in newPyEpoll_Object() 1298 int flags = 0, sizehint = -1; in pyepoll_new() local 1302 &sizehint, &flags)) in pyepoll_new() 1304 if (sizehint == -1) { in pyepoll_new() 1305 sizehint = FD_SETSIZE - 1; in pyepoll_new() 1307 else if (sizehint <= 0) { in pyepoll_new() 1318 return newPyEpoll_Object(type, sizehint, -1); in pyepoll_new()
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_buffered_proto.py | 12 def get_buffer(self, sizehint): argument
|
D | test_sslproto.py | 176 def get_buffer(self, sizehint): argument 308 def get_buffer(self, sizehint): argument
|
/external/chromium-trace/catapult/third_party/pyserial/serial/ |
D | serialutil.py | 179 def readlines(self, sizehint=None, eol=LF): argument 196 def xreadlines(self, sizehint=None): argument
|
/external/python/cpython2/Objects/ |
D | fileobject.c | 1683 long sizehint = 0; in file_readlines() local 1706 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint)) in file_readlines() 1722 sizehint = 0; in file_readlines() 1783 if (sizehint > 0) in file_readlines() 1784 if (totalread >= (size_t)sizehint) in file_readlines() 1792 if (sizehint > 0) { in file_readlines()
|
/external/lua/src/ |
D | lauxlib.h | 206 int sizehint);
|
D | lauxlib.c | 898 int sizehint) { in luaL_pushmodule() argument 904 if (luaL_findtable(L, 0, modname, sizehint) != NULL) in luaL_pushmodule()
|
/external/python/cpython3/Doc/library/ |
D | asyncio-protocol.rst | 600 .. method:: BufferedProtocol.get_buffer(sizehint) 604 *sizehint* is the recommended minimum size for the returned 606 than what *sizehint* suggests. When set to -1, the buffer size
|
D | select.rst | 56 .. function:: epoll(sizehint=-1, flags=0) 62 *sizehint* informs epoll about the expected number of events to be
|