Home
last modified time | relevance | path

Searched refs:sizehint (Results 1 – 25 of 34) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dmultibytecodec_support.py175 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)
Dtest_epoll.py91 self.assertRaises(ValueError, select.epoll, sizehint=-2)
Dtest_codecs.py1106 for sizehint in [None] + list(range(1, 11)) + \
1111 if sizehint is not None:
1112 data = istream.read(sizehint)
1128 for sizehint in [None] + list(range(1, 11)) + \
1133 if sizehint is not None:
1134 data = istream.read(sizehint)
/external/python/cpython2/Lib/test/
Dmultibytecodec_support.py161 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)
Dtest_codecs.py856 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/Modules/cjkcodecs/
Dmultibytecodec.c1424 const char *method, Py_ssize_t sizehint) in mbstreamreader_iread() argument
1430 if (sizehint == 0) in mbstreamreader_iread()
1440 if (sizehint < 0) in mbstreamreader_iread()
1445 method, "i", sizehint); in mbstreamreader_iread()
1490 if (endoffile || sizehint < 0) { in mbstreamreader_iread()
1506 if (sizehint < 0 || buf.writer.pos != 0 || rsize == 0) in mbstreamreader_iread()
1509 sizehint = 1; /* read 1 more byte and retry */ in mbstreamreader_iread()
1598 Py_ssize_t sizehint; in _multibytecodec_MultibyteStreamReader_readlines_impl() local
1601 sizehint = -1; in _multibytecodec_MultibyteStreamReader_readlines_impl()
1603 sizehint = PyLong_AsSsize_t(sizehintobj); in _multibytecodec_MultibyteStreamReader_readlines_impl()
[all …]
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c1236 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/Modules/
Dbz2module.c601 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 …]
Dselectmodule.c770 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/cpython3/Modules/clinic/
Dselectmodule.c.h511 select_epoll_impl(PyTypeObject *type, int sizehint, int flags);
523 int sizehint = -1; in select_epoll() local
539 sizehint = _PyLong_AsInt(fastargs[0]); in select_epoll()
540 if (sizehint == -1 && PyErr_Occurred()) { in select_epoll()
557 return_value = select_epoll_impl(type, sizehint, flags); in select_epoll()
/external/python/cpython3/Lib/asyncio/
Dprotocols.py139 def get_buffer(self, sizehint): argument
/external/python/cpython2/Lib/
Dcodecs.py593 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
DStringIO.py168 def readlines(self, sizehint = 0): argument
182 if 0 < sizehint <= total:
Dsocket.py515 def readlines(self, sizehint=0): argument
524 if sizehint and total >= sizehint:
Dmailbox.py1889 def readlines(self, sizehint=None): argument
1894 if sizehint is not None:
1895 sizehint -= len(line)
1896 if sizehint <= 0:
/external/python/cpython3/Lib/
Dcodecs.py606 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
Dmailbox.py1946 def readlines(self, sizehint=None): argument
1951 if sizehint is not None:
1952 sizehint -= len(line)
1953 if sizehint <= 0:
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_buffered_proto.py16 def get_buffer(self, sizehint): argument
Dtest_sslproto.py181 def get_buffer(self, sizehint): argument
381 def get_buffer(self, sizehint): argument
/external/python/cpython3/Modules/
Dselectmodule.c1282 newPyEpoll_Object(PyTypeObject *type, int sizehint, SOCKET fd) in newPyEpoll_Object() argument
1297 self->epfd = epoll_create(sizehint); in newPyEpoll_Object()
1338 select_epoll_impl(PyTypeObject *type, int sizehint, int flags) in select_epoll_impl() argument
1341 if (sizehint == -1) { in select_epoll_impl()
1342 sizehint = FD_SETSIZE - 1; in select_epoll_impl()
1344 else if (sizehint <= 0) { in select_epoll_impl()
1356 return newPyEpoll_Object(type, sizehint, -1); in select_epoll_impl()
/external/chromium-trace/catapult/third_party/pyserial/serial/
Dserialutil.py179 def readlines(self, sizehint=None, eol=LF): argument
196 def xreadlines(self, sizehint=None): argument
/external/python/cpython2/Objects/
Dfileobject.c1683 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/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/
Dspawnbase.py485 def readlines(self, sizehint=-1): argument
/external/python/cpython3/Doc/library/
Dasyncio-protocol.rst605 .. method:: BufferedProtocol.get_buffer(sizehint)
609 *sizehint* is the recommended minimum size for the returned
611 than what *sizehint* suggests. When set to -1, the buffer size
Dselect.rst56 .. function:: epoll(sizehint=-1, flags=0)
62 *sizehint* informs epoll about the expected number of events to be

12