Home
last modified time | relevance | path

Searched refs:chunk (Results 1 – 25 of 40) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dlogmerge.py60 chunk = read_chunk(sys.stdin)
61 if not chunk:
63 records = digest_chunk(chunk, branch)
78 chunk = []
86 chunk.append(lines)
90 chunk.append(lines)
94 return chunk
96 def digest_chunk(chunk, branch=None): argument
98 lines = chunk[0]
133 for lines in chunk[1:]:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dwave.py92 from chunk import Chunk
138 chunk = Chunk(self._file, bigendian = 0)
141 chunkname = chunk.getname()
143 self._read_fmt_chunk(chunk)
148 self._data_chunk = chunk
149 self._nframes = chunk.chunksize // self._framesize
152 chunk.skip()
239 chunk = self._data_chunk
242 if nitems * self._sampwidth > chunk.chunksize - chunk.size_read:
243 nitems = (chunk.chunksize - chunk.size_read) / self._sampwidth
[all …]
Daifc.py241 from chunk import Chunk
286 chunk = Chunk(file)
287 if chunk.getname() != 'FORM':
289 formdata = chunk.read(4)
300 chunk = Chunk(self._file)
303 chunkname = chunk.getname()
305 self._read_comm_chunk(chunk)
308 self._ssnd_chunk = chunk
309 dummy = chunk.read(8)
312 self._version = _read_ulong(chunk)
[all …]
Dgzip.py259 chunk = self.extrabuf[offset: offset + size]
263 return chunk
499 chunk = f.read(1024)
500 if not chunk:
502 g.write(chunk)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/zlib/
Dzlibdemo.py30 chunk = 256
34 for i in range(0, len(s), chunk):
35 comptext = comptext+compressor.compress(s[i:i+chunk])
39 for i in range(0, len(comptext), chunk):
40 decomp = decomp + decompressor.decompress(comptext[i:i+chunk])
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/
Duu_codec.py36 chunk = read(45)
37 while chunk:
38 write(b2a_uu(chunk))
39 chunk = read(45)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/
Duu_codec.py36 chunk = read(45)
37 while chunk:
38 write(b2a_uu(chunk))
39 chunk = read(45)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/
Dencoder.py326 for chunk in chunks:
327 yield chunk
402 for chunk in chunks:
403 yield chunk
425 for chunk in _iterencode_list(o, _current_indent_level):
426 yield chunk
428 for chunk in _iterencode_dict(o, _current_indent_level):
429 yield chunk
437 for chunk in _iterencode(o, _current_indent_level):
438 yield chunk
D__init__.py181 for chunk in iterable:
182 fp.write(chunk)
Ddecoder.py81 chunk = _m(s, end)
82 if chunk is None:
85 end = chunk.end()
86 content, terminator = chunk.groups()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/
Dencoder.py332 for chunk in chunks:
333 yield chunk
408 for chunk in chunks:
409 yield chunk
431 for chunk in _iterencode_list(o, _current_indent_level):
432 yield chunk
434 for chunk in _iterencode_dict(o, _current_indent_level):
435 yield chunk
443 for chunk in _iterencode(o, _current_indent_level):
444 yield chunk
Ddecoder.py91 chunk = _m(s, end)
92 if chunk is None:
95 end = chunk.end()
96 content, terminator = chunk.groups()
D__init__.py189 for chunk in iterable:
190 fp.write(chunk)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_zlib.py231 chunk = dco.decompress('')
232 if chunk:
233 bufs.append(chunk)
264 chunk = dco.decompress(cb, dcx)
265 self.assertFalse(len(chunk) > dcx,
266 'chunk too big (%d>%d)' % (len(chunk), dcx))
267 bufs.append(chunk)
289 chunk = dco.decompress(cb, max_length)
290 self.assertFalse(len(chunk) > max_length,
291 'chunk too big (%d>%d)' % (len(chunk),max_length))
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/iobench/
Diobench.py373 chunk = []
386 chunk = "".join(line.replace("\n", next(it)) for line in f)
387 if isinstance(chunk, bytes):
388 chunk = chunk.decode('utf8')
389 chunk = chunk.encode(TEXT_ENCODING)
393 head = chunk * (size // len(chunk))
394 tail = chunk[:size % len(chunk)]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Python/
Drandom.c81 Py_ssize_t chunk; in win32_urandom() local
91 chunk = size > INT_MAX ? INT_MAX : size; in win32_urandom()
92 if (!pCryptGenRandom(hCryptProv, chunk, buffer)) in win32_urandom()
102 buffer += chunk; in win32_urandom()
103 size -= chunk; in win32_urandom()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/logging/
Dconfig.py810 chunk = conn.recv(4)
811 if len(chunk) == 4:
812 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))
818 d =json.loads(chunk)
824 file = cStringIO.StringIO(chunk)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_json.c437 PyObject *chunk = NULL; in scanstring_str() local
458 chunk = PyUnicode_FromEncodedObject(strchunk, encoding, NULL); in scanstring_str()
460 if (chunk == NULL) { in scanstring_str()
463 if (PyList_Append(chunks, chunk)) { in scanstring_str()
464 Py_DECREF(chunk); in scanstring_str()
467 Py_DECREF(chunk); in scanstring_str()
569 chunk = PyUnicode_FromUnicode(&c, 1); in scanstring_str()
570 if (chunk == NULL) { in scanstring_str()
573 if (PyList_Append(chunks, chunk)) { in scanstring_str()
574 Py_DECREF(chunk); in scanstring_str()
[all …]
D_randommodule.c268 unsigned long chunk; in random_seed() local
275 chunk = PyLong_AsUnsignedLong(pychunk); in random_seed()
277 if (chunk == (unsigned long)-1 && PyErr_Occurred()) in random_seed()
297 key[keyused++] = chunk; in random_seed()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_json.c437 PyObject *chunk = NULL; in scanstring_str() local
458 chunk = PyUnicode_FromEncodedObject(strchunk, encoding, NULL); in scanstring_str()
460 if (chunk == NULL) { in scanstring_str()
463 if (PyList_Append(chunks, chunk)) { in scanstring_str()
464 Py_DECREF(chunk); in scanstring_str()
467 Py_DECREF(chunk); in scanstring_str()
558 chunk = PyUnicode_FromUnicode(&c, 1); in scanstring_str()
559 if (chunk == NULL) { in scanstring_str()
562 if (PyList_Append(chunks, chunk)) { in scanstring_str()
563 Py_DECREF(chunk); in scanstring_str()
[all …]
D_randommodule.c268 unsigned long chunk; in random_seed() local
275 chunk = PyLong_AsUnsignedLong(pychunk); in random_seed()
277 if (chunk == (unsigned long)-1 && PyErr_Occurred()) in random_seed()
297 key[keyused++] = chunk; in random_seed()
/device/google/cuttlefish_common/guest/hals/camera/fake-pipeline2/
DJpegCompressor.cpp182 JSAMPROW chunk[kChunkSize]; in compress() local
184 chunk[i] = in compress()
187 jpeg_write_scanlines(&mCInfo, chunk, kChunkSize); in compress()
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlua.c401 const char *chunk = argv[i] + 2; in runargs() local
402 if (*chunk == '\0') chunk = argv[++i]; in runargs()
403 lua_assert(chunk != NULL); in runargs()
404 if (dostring(L, chunk, "=(command line)") != LUA_OK) in runargs()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/
Dheader.py331 chunk = [(fencoded, charset)]
332 return chunk + self._split(last, charset, self._maxlinelen, splitchars)
501 chunk = charset.from_splittable(splittable[:m], True)
502 chunklen = charset.encoded_header_len(chunk)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dsre_compile.py378 chunk = charmap[i: i + 256]
379 if chunk in comps:
380 mapping[i // 256] = comps[chunk]
382 mapping[i // 256] = comps[chunk] = block
384 data += chunk

12