/third_party/python/Lib/ |
H A D | chunk.py | 69 self.chunksize = struct.unpack_from(strflag+'L', file.read(4))[0] 73 self.chunksize = self.chunksize - 8 # subtract header 88 return self.chunksize 115 pos = pos + self.chunksize 116 if pos < 0 or pos > self.chunksize: 134 if self.size_read >= self.chunksize: 137 size = self.chunksize - self.size_read 138 if size > self.chunksize - self.size_read: 139 size = self.chunksize [all...] |
H A D | wave.py | 116 self.chunksize = struct.unpack_from(strflag+'L', file.read(4))[0] 120 self.chunksize = self.chunksize - 8 # subtract header 153 pos = pos + self.chunksize 154 if pos < 0 or pos > self.chunksize: 172 if self.size_read >= self.chunksize: 175 size = self.chunksize - self.size_read 176 if size > self.chunksize - self.size_read: 177 size = self.chunksize - self.size_read 180 if self.size_read == self.chunksize an [all...] |
H A D | aifc.py | 496 if chunk.chunksize == 18: 499 chunk.chunksize = 23 507 chunk.chunksize = chunk.chunksize + length
|
H A D | platform.py | 161 def libc_ver(executable=None, lib='', version='', chunksize=16384): 173 The file is read and scanned in chunks of chunksize bytes. 199 binary = f.read(chunksize) 207 chunk = f.read(chunksize)
|
/third_party/ffmpeg/libavformat/ |
H A D | mms.c | 73 uint64_t chunksize; in ff_mms_asf_header_parser() local 75 chunksize = 50; // see Reference [2] section 5.1 in ff_mms_asf_header_parser() 77 chunksize = AV_RL64(p + sizeof(ff_asf_guid)); in ff_mms_asf_header_parser() 79 if (!chunksize || chunksize > end - p) { in ff_mms_asf_header_parser() 81 "Corrupt stream (header chunksize %"PRId64" is invalid)\n", in ff_mms_asf_header_parser() 82 chunksize); in ff_mms_asf_header_parser() 143 if (chunksize - skip_bytes > 24) in ff_mms_asf_header_parser() 144 chunksize = skip_bytes; in ff_mms_asf_header_parser() 147 chunksize in ff_mms_asf_header_parser() [all...] |
H A D | http.c | 73 uint64_t chunksize; member 1190 s->chunksize = 0; in process_line() 1337 s->chunksize = UINT64_MAX; in http_read_header() 1564 if (s->chunksize != UINT64_MAX) { in http_buf_read() 1568 if (!s->chunksize) { in http_buf_read() 1577 s->chunksize = strtoull(line, NULL, 16); in http_buf_read() 1581 s->chunksize); in http_buf_read() 1583 if (!s->chunksize && s->multiple_requests) { in http_buf_read() 1588 else if (!s->chunksize) { in http_buf_read() 1593 else if (s->chunksize in http_buf_read() [all...] |
H A D | rtpdec_asf.c | 55 uint64_t chunksize = AV_RL64(p + sizeof(ff_asf_guid)); in rtp_asf_fix_header() local 58 if (chunksize > end - p) in rtp_asf_fix_header() 60 p += chunksize; in rtp_asf_fix_header()
|
/third_party/ltp/testcases/kernel/mem/mtest01/ |
H A D | mtest01.c | 8 * mtest01 mallocs memory <chunksize> at a time until malloc fails. 49 static int chunksize = 1024*1024; variable 57 static void parse_mtest_options(char *str_chunksize, int *chunksize, in parse_mtest_options() argument 62 if (tst_parse_int(str_chunksize, chunksize, 1, INT_MAX)) in parse_mtest_options() 63 tst_brk(TBROK, "Invalid chunksize '%s'", str_chunksize); in parse_mtest_options() 90 static void do_write_mem(char *mem, int chunksize) in do_write_mem() argument 94 for (i = 0; i < chunksize; i += pagesz) in do_write_mem() 109 parse_mtest_options(opt_chunksize, &chunksize, in setup() 143 mem = SAFE_MALLOC(chunksize); in child_loop_alloc() 145 do_write_mem(mem, chunksize); in child_loop_alloc() [all...] |
/third_party/python/Lib/multiprocessing/ |
H A D | pool.py | 362 def map(self, func, iterable, chunksize=None): 367 return self._map_async(func, iterable, mapstar, chunksize).get() 369 def starmap(self, func, iterable, chunksize=None): 375 return self._map_async(func, iterable, starmapstar, chunksize).get() 377 def starmap_async(self, func, iterable, chunksize=None, callback=None, 382 return self._map_async(func, iterable, starmapstar, chunksize, 396 def imap(self, func, iterable, chunksize=1): 401 if chunksize == 1: 410 if chunksize < 1: 413 chunksize)) [all...] |
/third_party/libsnd/src/ |
H A D | wavlike.c | 737 wavlike_read_bext_chunk (SF_PRIVATE *psf, uint32_t chunksize) in wavlike_read_bext_chunk() argument 742 if (chunksize < WAV_BEXT_MIN_CHUNK_SIZE) in wavlike_read_bext_chunk() 743 { psf_log_printf (psf, "bext : %u (should be >= %d)\n", chunksize, WAV_BEXT_MIN_CHUNK_SIZE) ; in wavlike_read_bext_chunk() 744 psf_binheader_readf (psf, "j", chunksize) ; in wavlike_read_bext_chunk() 748 if (chunksize > WAV_BEXT_MAX_CHUNK_SIZE) in wavlike_read_bext_chunk() 749 { psf_log_printf (psf, "bext : %u (should be < %d)\n", chunksize, WAV_BEXT_MAX_CHUNK_SIZE) ; in wavlike_read_bext_chunk() 750 psf_binheader_readf (psf, "j", chunksize) ; in wavlike_read_bext_chunk() 754 if (chunksize >= sizeof (SF_BROADCAST_INFO_16K)) in wavlike_read_bext_chunk() 755 { psf_log_printf (psf, "bext : %u too big to be handled\n", chunksize) ; in wavlike_read_bext_chunk() 756 psf_binheader_readf (psf, "j", chunksize) ; in wavlike_read_bext_chunk() 836 wavlike_read_cart_chunk(SF_PRIVATE *psf, uint32_t chunksize) wavlike_read_cart_chunk() argument [all...] |
H A D | wavlike.h | 359 int wavlike_read_bext_chunk (SF_PRIVATE *psf, uint32_t chunksize) ; 362 int wavlike_read_cart_chunk (SF_PRIVATE *psf, uint32_t chunksize) ;
|
/third_party/node/benchmark/http/ |
H A D | _chunky_http_client.js | 43 const chunksize = 37; 44 for (let i = 0; i < todo.length; i += chunksize) { 45 const cur = todo.slice(i, i + chunksize);
|
/third_party/FreeBSD/sbin/newfs_msdos/ |
H A D | mkfs_msdos.c | 257 ssize_t chunksize; in mkfs_msdos() local 621 chunksize = getchunksize(); in mkfs_msdos() 622 physbuf = malloc(chunksize); in mkfs_msdos() 627 physbuf_end = physbuf + chunksize; in mkfs_msdos() 755 * Issue a write of chunksize once we have collected in mkfs_msdos() 760 n = write(fd, physbuf, chunksize); in mkfs_msdos() 761 if (n != chunksize) { in mkfs_msdos() 799 static int chunksize; in getchunksize() local 801 if (chunksize != 0) in getchunksize() 802 return ((ssize_t)chunksize); in getchunksize() [all...] |
/third_party/skia/tools/ |
H A D | embed_resources.py | 13 def bytes_from_file(f, chunksize=8192): 15 chunk = f.read(chunksize)
|
/third_party/python/Lib/concurrent/futures/ |
H A D | process.py | 186 def _get_chunks(*iterables, chunksize): 190 chunk = tuple(itertools.islice(it, chunksize)) 792 def map(self, fn, *iterables, timeout=None, chunksize=1): 800 chunksize: If greater than one, the iterables will be chopped into 801 chunks of size chunksize and submitted to the process pool. 813 if chunksize < 1: 814 raise ValueError("chunksize must be >= 1.") 817 _get_chunks(*iterables, chunksize=chunksize),
|
H A D | _base.py | 583 def map(self, fn, *iterables, timeout=None, chunksize=1): 591 chunksize: The size of the chunks the iterable will be broken into
|
/third_party/python/Lib/test/ |
H A D | test_platform.py | 416 chunksize = 16384 419 f.write(b'x'*(chunksize - 10)) 421 self.assertEqual(platform.libc_ver(filename, chunksize=chunksize),
|
H A D | test_bigmem.py | 355 chunksize = int(size ** 0.5 + 2) 356 SUBSTR = _('a') + _(' ') * chunksize 357 s = SUBSTR * chunksize 359 self.assertEqual(len(l), chunksize) 365 self.assertEqual(len(l), chunksize + 1) 366 expected = _(' ') * chunksize 393 chunksize = int(size ** 0.5 + 2) // 2 394 SUBSTR = _(' ') * chunksize + _('\n') + _(' ') * chunksize + _('\r\n') 395 s = SUBSTR * (chunksize * [all...] |
H A D | test_concurrent_futures.py | 848 list(self.executor.map(pow, range(10), range(10), chunksize=3)), 1012 list(self.executor.map(pow, range(40), range(40), chunksize=-1)) 1016 list(self.executor.map(pow, range(40), range(40), chunksize=6)), 1019 list(self.executor.map(pow, range(40), range(40), chunksize=50)), 1022 list(self.executor.map(pow, range(40), range(40), chunksize=40)),
|
H A D | _test_multiprocessing.py | 2435 self.assertEqual(pmap(sqr, list(range(100)), chunksize=20), 2444 self.assertEqual(psmap(mul, tuples, chunksize=20), 2481 self.pool.map_async(sqr, [], chunksize=1).get(timeout=TIMEOUT1) 2483 self.fail("pool.map_async with chunksize stalled on null list") 2532 it = self.pool.imap(sqr, list(range(1000)), chunksize=100) 2567 it = self.pool.imap_unordered(sqr, list(range(1000)), chunksize=100) 2623 time.sleep, [0.1 for i in range(10000)], chunksize=1
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
H A D | vkPrograms.cpp | 422 deUint32 chunksize = 0; in shaderCacheFirstRunCheck() local 429 if (ok) ok = fread(&chunksize, 1, 4, file) == 4; in shaderCacheFirstRunCheck() 432 if (ok) ok = fseek(file, offset + chunksize, SEEK_SET) == 0; in shaderCacheFirstRunCheck() 530 deUint32 chunksize; in shadercacheSave() local 593 chunksize = 4 + 4 + 4 + 4 + length + 4 + (deUint32)shaderstring.length(); in shadercacheSave() 594 fwrite(&chunksize, 1, 4, file); in shadercacheSave()
|
/third_party/backends/backend/pixma/ |
H A D | pixma_imageclass.c | 374 unsigned maxchunksize, chunksize, count = 0; in read_image_block() local 384 chunksize = maxchunksize; in read_image_block() 386 chunksize = size; in read_image_block() 388 chunksize = size - (size % MIN_CHUNK_SIZE); in read_image_block() 389 error = pixma_read (s->io, data, chunksize); in read_image_block()
|
/third_party/curl/tests/ |
H A D | ftpserver.pl | 1306 my $chunksize = 0; 1308 $chunksize = hex($1); 1311 read_mainsockf(\$line, $chunksize); 1314 my $datasize = ($left > $chunksize) ? $chunksize : $left;
|
/third_party/curl/lib/vtls/ |
H A D | x509asn1.c | 1208 size_t chunksize = (clen - j) > 64 ? 64 : (clen - j); in Curl_extract_certinfo() local 1209 result = Curl_dyn_addn(&out, &certptr[j], chunksize); in Curl_extract_certinfo() 1212 j += chunksize; in Curl_extract_certinfo()
|
/third_party/python/Lib/test/test_email/ |
H A D | test_email.py | 3611 chunksize = 5 3619 for i in range(0, len(s), chunksize): 3620 chunk = s[i:i+chunksize]
|