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

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A 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)
[all...]
H A 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/Python-2.7.10/Lib/
H A DStringIO.py168 def readlines(self, sizehint = 0):
172 If the optional sizehint argument is present, instead of reading up
173 to EOF, whole lines totalling approximately sizehint bytes (or more
182 if 0 < sizehint <= total:
H A Dsocket.py515 def readlines(self, sizehint=0):
524 if sizehint and total >= sizehint:
H A Dcodecs.py579 def readlines(self, sizehint=None, keepends=True):
587 sizehint, if given, is ignored since there is no efficient
680 def readlines(self, sizehint=None):
682 return self.reader.readlines(sizehint)
797 def readlines(self, sizehint=None):
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A DStringIO.py168 def readlines(self, sizehint = 0):
172 If the optional sizehint argument is present, instead of reading up
173 to EOF, whole lines totalling approximately sizehint bytes (or more
182 if 0 < sizehint <= total:
H A Dsocket.py511 def readlines(self, sizehint=0):
520 if sizehint and total >= sizehint:
H A Dcodecs.py576 def readlines(self, sizehint=None, keepends=True):
584 sizehint, if given, is ignored since there is no efficient
677 def readlines(self, sizehint=None):
679 return self.reader.readlines(sizehint)
794 def readlines(self, sizehint=None):
H A Dmailbox.py1829 def readlines(self, sizehint=None):
1834 if sizehint is not None:
1835 sizehint -= len(line)
1836 if sizehint <= 0:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
H A Dselectmodule.c736 newPyEpoll_Object(PyTypeObject *type, int sizehint, SOCKET fd) argument
740 if (sizehint == -1) {
741 sizehint = FD_SETSIZE-1;
743 else if (sizehint < 1) {
745 "sizehint must be greater zero, got %d",
746 sizehint);
757 self->epfd = epoll_create(sizehint);
775 int sizehint = -1; local
776 static char *kwlist[] = {"sizehint", NULL};
779 &sizehint))
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
H A Dselectmodule.c770 newPyEpoll_Object(PyTypeObject *type, int sizehint, SOCKET fd) argument
774 if (sizehint == -1) {
775 sizehint = FD_SETSIZE-1;
777 else if (sizehint < 1) {
779 "sizehint must be greater zero, got %d",
780 sizehint);
791 self->epfd = epoll_create(sizehint);
809 int sizehint = -1; local
810 static char *kwlist[] = {"sizehint", NULL};
813 &sizehint))
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
H A Dselectmodule.c736 newPyEpoll_Object(PyTypeObject *type, int sizehint, SOCKET fd) argument
740 if (sizehint == -1) {
741 sizehint = FD_SETSIZE-1;
743 else if (sizehint < 1) {
745 "sizehint must be greater zero, got %d",
746 sizehint);
757 self->epfd = epoll_create(sizehint);
775 int sizehint = -1; local
776 static char *kwlist[] = {"sizehint", NULL};
779 &sizehint))
[all...]
H A Dbz2module.c613 int sizehint = -1; local
615 if (!PyArg_ParseTuple(args, "|i:readline", &sizehint))
639 if (sizehint == 0)
642 ret = Util_GetLine(self, (sizehint < 0) ? 0 : sizehint);
661 long sizehint = 0; local
676 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint))
714 sizehint = 0;
770 if (sizehint > 0)
771 if (totalread >= (size_t)sizehint)
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/cjkcodecs/
H A Dmultibytecodec.c1237 const char *method, Py_ssize_t sizehint)
1243 if (sizehint == 0)
1252 if (sizehint < 0)
1257 (char *)method, "i", sizehint);
1301 if (endoffile || sizehint < 0) {
1319 if (sizehint < 0 || finalsize != 0 || rsize == 0)
1322 sizehint = 1; /* read 1 more byte and retry */
1386 Py_ssize_t sizehint; local
1392 sizehint = -1;
1394 sizehint
1236 mbstreamreader_iread(MultibyteStreamReaderObject *self, const char *method, Py_ssize_t sizehint) argument
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/cjkcodecs/
H A Dmultibytecodec.c1234 const char *method, Py_ssize_t sizehint)
1240 if (sizehint == 0)
1249 if (sizehint < 0)
1254 (char *)method, "i", sizehint);
1298 if (endoffile || sizehint < 0) {
1316 if (sizehint < 0 || finalsize != 0 || rsize == 0)
1319 sizehint = 1; /* read 1 more byte and retry */
1383 Py_ssize_t sizehint; local
1389 sizehint = -1;
1391 sizehint
1233 mbstreamreader_iread(MultibyteStreamReaderObject *self, const char *method, Py_ssize_t sizehint) argument
[all...]
/device/linaro/bootloader/edk2/StdLib/Include/Lua/
H A Dlauxlib.h201 int sizehint);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
H A Dfileobject.c1664 long sizehint = 0; local
1687 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint))
1703 sizehint = 0;
1764 if (sizehint > 0)
1765 if (totalread >= (size_t)sizehint)
1773 if (sizehint > 0) {
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
H A Dfileobject.c1612 long sizehint = 0; local
1635 if (!PyArg_ParseTuple(args, "|l:readlines", &sizehint))
1651 sizehint = 0;
1704 if (sizehint > 0)
1705 if (totalread >= (size_t)sizehint)
1713 if (sizehint > 0) {
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
H A Dlauxlib.c811 int sizehint) {
818 if (luaL_findtable(L, 0, modname, sizehint) != NULL)
810 luaL_pushmodule(lua_State *L, const char *modname, int sizehint) argument

Completed in 103 milliseconds