Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_multibytecodec_support.py152 for sizehint in [None] + range(1, 33) + \
158 if sizehint is not None:
159 data = istream.read(sizehint)
172 for sizehint in [None, -1] + range(1, 33) + \
178 data = istream.read(sizehint)
210 for sizehint in [None, -1] + range(1, 33) + \
216 data = func(sizehint)
230 for sizehint in [None] + range(1, 33) + \
236 if sizehint is not None:
237 data = func(sizehint)
Dtest_codecs.py633 for sizehint in [None] + range(1, 11) + \
638 if sizehint is not None:
639 data = istream.read(sizehint)
655 for sizehint in [None] + range(1, 11) + \
660 if sizehint is not None:
661 data = istream.read(sizehint)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
Dselectmodule.c736 newPyEpoll_Object(PyTypeObject *type, int sizehint, SOCKET fd) in newPyEpoll_Object() argument
740 if (sizehint == -1) { in newPyEpoll_Object()
741 sizehint = FD_SETSIZE-1; in newPyEpoll_Object()
743 else if (sizehint < 1) { in newPyEpoll_Object()
746 sizehint); in newPyEpoll_Object()
757 self->epfd = epoll_create(sizehint); in newPyEpoll_Object()
775 int sizehint = -1; in pyepoll_new() local
779 &sizehint)) in pyepoll_new()
782 return newPyEpoll_Object(type, sizehint, -1); in pyepoll_new()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dselectmodule.c736 newPyEpoll_Object(PyTypeObject *type, int sizehint, SOCKET fd) in newPyEpoll_Object() argument
740 if (sizehint == -1) { in newPyEpoll_Object()
741 sizehint = FD_SETSIZE-1; in newPyEpoll_Object()
743 else if (sizehint < 1) { in newPyEpoll_Object()
746 sizehint); in newPyEpoll_Object()
757 self->epfd = epoll_create(sizehint); in newPyEpoll_Object()
775 int sizehint = -1; in pyepoll_new() local
779 &sizehint)) in pyepoll_new()
782 return newPyEpoll_Object(type, sizehint, -1); in pyepoll_new()
Dbz2module.c613 int sizehint = -1; in BZ2File_readline() local
615 if (!PyArg_ParseTuple(args, "|i:readline", &sizehint)) in BZ2File_readline()
639 if (sizehint == 0) in BZ2File_readline()
642 ret = Util_GetLine(self, (sizehint < 0) ? 0 : sizehint); in BZ2File_readline()
661 long sizehint = 0; in BZ2File_readlines() local
676 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint)) in BZ2File_readlines()
714 sizehint = 0; in BZ2File_readlines()
770 if (sizehint > 0) in BZ2File_readlines()
771 if (totalread >= (size_t)sizehint) in BZ2File_readlines()
774 sizehint = 0; in BZ2File_readlines()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/cjkcodecs/
Dmultibytecodec.c1237 const char *method, Py_ssize_t sizehint) in mbstreamreader_iread() argument
1243 if (sizehint == 0) in mbstreamreader_iread()
1252 if (sizehint < 0) in mbstreamreader_iread()
1257 (char *)method, "i", sizehint); in mbstreamreader_iread()
1301 if (endoffile || sizehint < 0) { in mbstreamreader_iread()
1319 if (sizehint < 0 || finalsize != 0 || rsize == 0) in mbstreamreader_iread()
1322 sizehint = 1; /* read 1 more byte and retry */ in mbstreamreader_iread()
1386 Py_ssize_t sizehint; in mbstreamreader_readlines() local
1392 sizehint = -1; in mbstreamreader_readlines()
1394 sizehint = PyInt_AsSsize_t(sizehintobj); in mbstreamreader_readlines()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/cjkcodecs/
Dmultibytecodec.c1234 const char *method, Py_ssize_t sizehint) in mbstreamreader_iread() argument
1240 if (sizehint == 0) in mbstreamreader_iread()
1249 if (sizehint < 0) in mbstreamreader_iread()
1254 (char *)method, "i", sizehint); in mbstreamreader_iread()
1298 if (endoffile || sizehint < 0) { in mbstreamreader_iread()
1316 if (sizehint < 0 || finalsize != 0 || rsize == 0) in mbstreamreader_iread()
1319 sizehint = 1; /* read 1 more byte and retry */ in mbstreamreader_iread()
1383 Py_ssize_t sizehint; in mbstreamreader_readlines() local
1389 sizehint = -1; in mbstreamreader_readlines()
1391 sizehint = PyInt_AsSsize_t(sizehintobj); in mbstreamreader_readlines()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
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()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DStringIO.py168 def readlines(self, sizehint = 0): argument
182 if 0 < sizehint <= total:
Dcodecs.py579 def readlines(self, sizehint=None, keepends=True): argument
680 def readlines(self, sizehint=None): argument
682 return self.reader.readlines(sizehint)
797 def readlines(self, sizehint=None): argument
Dsocket.py515 def readlines(self, sizehint=0): argument
524 if sizehint and total >= sizehint:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DStringIO.py168 def readlines(self, sizehint = 0): argument
182 if 0 < sizehint <= total:
Dcodecs.py576 def readlines(self, sizehint=None, keepends=True): argument
677 def readlines(self, sizehint=None): argument
679 return self.reader.readlines(sizehint)
794 def readlines(self, sizehint=None): argument
Dsocket.py511 def readlines(self, sizehint=0): argument
520 if sizehint and total >= sizehint:
Dmailbox.py1829 def readlines(self, sizehint=None): argument
1834 if sizehint is not None:
1835 sizehint -= len(line)
1836 if sizehint <= 0:
/device/linaro/bootloader/edk2/StdLib/Include/Lua/
Dlauxlib.h201 int sizehint);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dfileobject.c1664 long sizehint = 0; in file_readlines() local
1687 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint)) in file_readlines()
1703 sizehint = 0; in file_readlines()
1764 if (sizehint > 0) in file_readlines()
1765 if (totalread >= (size_t)sizehint) in file_readlines()
1773 if (sizehint > 0) { in file_readlines()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dfileobject.c1612 long sizehint = 0; in file_readlines() local
1635 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint)) in file_readlines()
1651 sizehint = 0; in file_readlines()
1704 if (sizehint > 0) in file_readlines()
1705 if (totalread >= (size_t)sizehint) in file_readlines()
1713 if (sizehint > 0) { in file_readlines()
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlauxlib.c811 int sizehint) { in luaL_pushmodule() argument
818 if (luaL_findtable(L, 0, modname, sizehint) != NULL) in luaL_pushmodule()