Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 24 of 24) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DStringIO.py219 slen = self.len
220 if spos == slen:
224 if spos > slen:
225 self.buflist.append('\0'*(spos - slen))
226 slen = spos
228 if spos < slen:
233 if newpos > slen:
234 slen = newpos
237 slen = newpos
238 self.len = slen
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DStringIO.py219 slen = self.len
220 if spos == slen:
224 if spos > slen:
225 self.buflist.append('\0'*(spos - slen))
226 slen = spos
228 if spos < slen:
233 if newpos > slen:
234 slen = newpos
237 slen = newpos
238 self.len = slen
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dstropmodule.c172 Py_ssize_t i, reslen = 0, slen = 0, sz = 100; in strop_joinfields() local
218 slen = PyString_GET_SIZE(item); in strop_joinfields()
219 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields()
226 while (reslen + slen + seplen >= sz) { in strop_joinfields()
237 memcpy(p, PyString_AS_STRING(item), slen); in strop_joinfields()
238 p += slen; in strop_joinfields()
239 reslen += slen; in strop_joinfields()
262 slen = PyString_GET_SIZE(item); in strop_joinfields()
263 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields()
271 while (reslen + slen + seplen >= sz) { in strop_joinfields()
[all …]
Dbinascii.c335 binascii_find_valid(unsigned char *s, Py_ssize_t slen, int num) in binascii_find_valid() argument
344 while ((slen > 0) && (ret == -1)) { in binascii_find_valid()
354 slen--; in binascii_find_valid()
Dpyexpat.c896 int slen; in xmlparse_Parse() local
899 if (!PyArg_ParseTuple(args, "s#|i:Parse", &s, &slen, &isFinal)) in xmlparse_Parse()
902 return get_parse_result(self, XML_Parse(self->itself, s, slen, isFinal)); in xmlparse_Parse()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dstropmodule.c172 Py_ssize_t i, reslen = 0, slen = 0, sz = 100; in strop_joinfields() local
218 slen = PyString_GET_SIZE(item); in strop_joinfields()
219 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields()
226 while (reslen + slen + seplen >= sz) { in strop_joinfields()
237 memcpy(p, PyString_AS_STRING(item), slen); in strop_joinfields()
238 p += slen; in strop_joinfields()
239 reslen += slen; in strop_joinfields()
262 slen = PyString_GET_SIZE(item); in strop_joinfields()
263 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields()
271 while (reslen + slen + seplen >= sz) { in strop_joinfields()
[all …]
Dbinascii.c333 binascii_find_valid(unsigned char *s, Py_ssize_t slen, int num) in binascii_find_valid() argument
342 while ((slen > 0) && (ret == -1)) { in binascii_find_valid()
352 slen--; in binascii_find_valid()
Dpyexpat.c896 int slen; in xmlparse_Parse() local
899 if (!PyArg_ParseTuple(args, "s#|i:Parse", &s, &slen, &isFinal)) in xmlparse_Parse()
902 return get_parse_result(self, XML_Parse(self->itself, s, slen, isFinal)); in xmlparse_Parse()
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dvsnprintf_ss.c120 vsnprintf_ss(char *sbuf, size_t slen, const char *fmt0, va_list ap)
148 tailp = sbuf + slen;
/device/linaro/bootloader/edk2/CryptoPkg/Library/OpensslLib/
DEDKII_openssl-1.0.2j.patch96 c.slen = length;
100 if (func(&(b),&c.p,c.slen) == NULL) \
103 c.slen-=(c.p-c.q);
108 if (((D2I_OF(type))func)(&(b),&c.p,c.slen) == NULL) \
111 c.slen-=(c.p-c.q);
116 if (func(&(b),&c.p,c.slen) < 0) \
119 c.slen-=(c.p-c.q);
125 if (func(&(b),&c.p,c.slen) == NULL) \
128 c.slen-=(c.p-c.q);\
133 if (d2i_ASN1_SET(&(r),&c.p,c.slen,(char *(*)())func,\
[all …]
/device/linaro/hikey/power/
Dpower_hikey.c128 static int sysfs_read(const char *path, char *s, int slen) in sysfs_read() argument
138 len = read(fd, s, slen); in sysfs_read()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_logging.py834 slen = struct.unpack(">L", chunk)[0]
835 chunk = self.connection.recv(slen)
836 while len(chunk) < slen:
837 chunk = chunk + self.connection.recv(slen - len(chunk))
1791 slen = struct.pack('>L', len(text))
1792 s = slen + text
Dtest_bigmem.py152 slen, remainder = divmod(size, tabsize)
153 s = ' \t' * slen
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/logging/
Dconfig.py812 slen = struct.unpack(">L", chunk)[0]
813 chunk = self.connection.recv(slen)
814 while len(chunk) < slen:
815 chunk = chunk + conn.recv(slen - len(chunk))
Dhandlers.py528 slen = struct.pack(">L", len(s))
529 return slen + s
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
Dregcomp.c464 int rlen, r, len, prev_len, slen, ambig; in compile_length_string_node() local
478 slen = 1; in compile_length_string_node()
484 slen++; in compile_length_string_node()
487 r = add_compile_string_length(prev, prev_len, slen, reg, ambig); in compile_length_string_node()
490 slen = 1; in compile_length_string_node()
495 r = add_compile_string_length(prev, prev_len, slen, reg, ambig); in compile_length_string_node()
512 int r, len, prev_len, slen, ambig; in compile_string_node() local
527 slen = 1; in compile_string_node()
532 slen++; in compile_string_node()
535 r = add_compile_string(prev, prev_len, slen, reg, ambig); in compile_string_node()
[all …]
Dregparse.c234 int slen, term_len, i; in strdup_with_null() local
237 slen = (int)(end - s); in strdup_with_null()
240 r = (UChar* )xmalloc(slen + term_len); in strdup_with_null()
242 xmemcpy(r, s, slen); in strdup_with_null()
245 r[slen + i] = (UChar )0; in strdup_with_null()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dintobject.c360 Py_ssize_t slen; in PyInt_FromString() local
385 slen = strlen(s) < 200 ? strlen(s) : 200; in PyInt_FromString()
386 sobj = PyString_FromStringAndSize(s, slen); in PyInt_FromString()
Dstringobject.c2870 Py_ssize_t slen; in _string_tailmatch() local
2876 slen = PyString_GET_SIZE(substr); in _string_tailmatch()
2883 else if (PyObject_AsCharBuffer(substr, &sub, &slen)) in _string_tailmatch()
2891 if (start+slen > len) in _string_tailmatch()
2895 if (end-start < slen || start > len) in _string_tailmatch()
2898 if (end-slen > start) in _string_tailmatch()
2899 start = end - slen; in _string_tailmatch()
2901 if (end-start >= slen) in _string_tailmatch()
2902 return ! memcmp(str+start, sub, slen); in _string_tailmatch()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dintobject.c346 Py_ssize_t slen; in PyInt_FromString() local
371 slen = strlen(s) < 200 ? strlen(s) : 200; in PyInt_FromString()
372 sobj = PyString_FromStringAndSize(s, slen); in PyInt_FromString()
Dstringobject.c2851 Py_ssize_t slen; in _string_tailmatch() local
2857 slen = PyString_GET_SIZE(substr); in _string_tailmatch()
2864 else if (PyObject_AsCharBuffer(substr, &sub, &slen)) in _string_tailmatch()
2872 if (start+slen > len) in _string_tailmatch()
2876 if (end-start < slen || start > len) in _string_tailmatch()
2879 if (end-slen > start) in _string_tailmatch()
2880 start = end - slen; in _string_tailmatch()
2882 if (end-start >= slen) in _string_tailmatch()
2883 return ! memcmp(str+start, sub, slen); in _string_tailmatch()
Dlongobject.c1719 Py_ssize_t slen; in PyLong_FromString() local
1979 slen = strlen(orig_str) < 200 ? strlen(orig_str) : 200; in PyLong_FromString()
1980 strobj = PyString_FromStringAndSize(orig_str, slen); in PyLong_FromString()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Objects/
Dlongobject.c1719 Py_ssize_t slen; in PyLong_FromString() local
1979 slen = strlen(orig_str) < 200 ? strlen(orig_str) : 200; in PyLong_FromString()
1980 strobj = PyString_FromStringAndSize(orig_str, slen); in PyLong_FromString()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Objects/
Dlongobject.c1733 Py_ssize_t slen; in PyLong_FromString() local
1993 slen = strlen(orig_str) < 200 ? strlen(orig_str) : 200; in PyLong_FromString()
1994 strobj = PyString_FromStringAndSize(orig_str, slen); in PyLong_FromString()