/third_party/python/Lib/ |
D | chunk.py | 65 self.chunksize = struct.unpack_from(strflag+'L', file.read(4))[0] 69 self.chunksize = self.chunksize - 8 # subtract header 84 return self.chunksize 111 pos = pos + self.chunksize 112 if pos < 0 or pos > self.chunksize: 130 if self.size_read >= self.chunksize: 133 size = self.chunksize - self.size_read 134 if size > self.chunksize - self.size_read: 135 size = self.chunksize - self.size_read 138 if self.size_read == self.chunksize and \ [all …]
|
D | aifc.py | 478 if chunk.chunksize == 18: 481 chunk.chunksize = 23 489 chunk.chunksize = chunk.chunksize + length
|
D | platform.py | 162 def libc_ver(executable=None, lib='', version='', chunksize=16384): argument 197 binary = f.read(chunksize) 205 chunk = f.read(chunksize)
|
D | wave.py | 149 self._nframes = chunk.chunksize // self._framesize
|
/third_party/ffmpeg/libavformat/ |
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() 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 = 46; // see references [2] section 3.4. This should be set 46. in ff_mms_asf_header_parser() 148 if (chunksize > end - p) { in ff_mms_asf_header_parser() 151 chunksize); in ff_mms_asf_header_parser() [all …]
|
D | http.c | 69 uint64_t chunksize; member 1079 s->chunksize = 0; in process_line() 1220 s->chunksize = UINT64_MAX; in http_read_header() 1442 if (s->chunksize != UINT64_MAX) { in http_buf_read() 1446 if (!s->chunksize) { in http_buf_read() 1455 s->chunksize = strtoull(line, NULL, 16); in http_buf_read() 1459 s->chunksize); in http_buf_read() 1461 if (!s->chunksize && s->multiple_requests) { in http_buf_read() 1466 else if (!s->chunksize) { in http_buf_read() 1471 else if (s->chunksize == UINT64_MAX) { in http_buf_read() [all …]
|
D | rtpdec_asf.c | 56 uint64_t chunksize = AV_RL64(p + sizeof(ff_asf_guid)); in rtp_asf_fix_header() local 59 if (chunksize > end - p) in rtp_asf_fix_header() 61 p += chunksize; in rtp_asf_fix_header()
|
/third_party/ltp/testcases/kernel/mem/mtest01/ |
D | mtest01.c | 51 static int chunksize = 1024*1024; variable 59 static void parse_mtest_options(char *str_chunksize, int *chunksize, in parse_mtest_options() argument 64 if (tst_parse_int(str_chunksize, chunksize, 1, INT_MAX)) in parse_mtest_options() 92 static void do_write_mem(char *mem, int chunksize) in do_write_mem() argument 96 for (i = 0; i < chunksize; i += pagesz) in do_write_mem() 111 parse_mtest_options(opt_chunksize, &chunksize, in setup() 144 mem = SAFE_MALLOC(chunksize); in child_loop_alloc() 146 do_write_mem(mem, chunksize); in child_loop_alloc() 151 getpid(), bytecount, chunksize); in child_loop_alloc() 152 bytecount += chunksize; in child_loop_alloc()
|
/third_party/python/Lib/multiprocessing/ |
D | pool.py | 359 def map(self, func, iterable, chunksize=None): argument 364 return self._map_async(func, iterable, mapstar, chunksize).get() 366 def starmap(self, func, iterable, chunksize=None): argument 372 return self._map_async(func, iterable, starmapstar, chunksize).get() 374 def starmap_async(self, func, iterable, chunksize=None, callback=None, argument 379 return self._map_async(func, iterable, starmapstar, chunksize, 393 def imap(self, func, iterable, chunksize=1): argument 398 if chunksize == 1: 407 if chunksize < 1: 410 chunksize)) [all …]
|
/third_party/libsnd/src/ |
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() [all …]
|
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/FreeBSD/sbin/newfs_msdos/ |
D | mkfs_msdos.c | 262 ssize_t chunksize; in mkfs_msdos() local 626 chunksize = getchunksize(); in mkfs_msdos() 627 physbuf = malloc(chunksize); in mkfs_msdos() 632 physbuf_end = physbuf + chunksize; in mkfs_msdos() 765 n = write(fd, physbuf, chunksize); in mkfs_msdos() 766 if (n != chunksize) { in mkfs_msdos() 804 static int chunksize; in getchunksize() local 806 if (chunksize != 0) in getchunksize() 807 return ((ssize_t)chunksize); in getchunksize() 815 len = sizeof(chunksize); in getchunksize() [all …]
|
/third_party/node/benchmark/http/ |
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/libffi/src/ |
D | dlmalloc.c | 1731 #define chunksize(p) ((p)->head & ~(INUSE_BITS)) macro 2493 (chunksize(p))))->prev_foot ^ mparams.magic)) 2629 size_t sz = chunksize(p); in do_check_top_chunk() 2642 size_t sz = chunksize(p); in do_check_mmapped_chunk() 2707 size_t tsize = chunksize(t); in do_check_tree() 2718 assert(chunksize(u) == tsize); in do_check_tree() 2745 assert(chunksize(u->child[0]) < chunksize(u->child[1])); in do_check_tree() 2773 size_t size = chunksize(p); in do_check_smallbin() 2779 assert(p->bk == b || chunksize(p->bk) == chunksize(p)); in do_check_smallbin() 2790 size_t size = chunksize(x); in bin_find() [all …]
|
/third_party/skia/tools/ |
D | embed_resources.py | 13 def bytes_from_file(f, chunksize=8192): argument 15 chunk = f.read(chunksize)
|
/third_party/python/Lib/concurrent/futures/ |
D | process.py | 183 def _get_chunks(*iterables, chunksize): argument 187 chunk = tuple(itertools.islice(it, chunksize)) 710 def map(self, fn, *iterables, timeout=None, chunksize=1): argument 731 if chunksize < 1: 735 _get_chunks(*iterables, chunksize=chunksize),
|
D | _base.py | 573 def map(self, fn, *iterables, timeout=None, chunksize=1): argument
|
/third_party/python/Lib/test/ |
D | test_platform.py | 405 chunksize = 16384 408 f.write(b'x'*(chunksize - 10)) 410 self.assertEqual(platform.libc_ver(filename, chunksize=chunksize),
|
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 * 2) 397 self.assertEqual(len(l), chunksize * 4) [all …]
|
D | test_concurrent_futures.py | 822 list(self.executor.map(pow, range(10), range(10), chunksize=3)), 959 list(self.executor.map(pow, range(40), range(40), chunksize=-1)) 963 list(self.executor.map(pow, range(40), range(40), chunksize=6)), 966 list(self.executor.map(pow, range(40), range(40), chunksize=50)), 969 list(self.executor.map(pow, range(40), range(40), chunksize=40)),
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
D | vkPrograms.cpp | 203 deUint32 chunksize = 0; in shaderCacheFirstRunCheck() local 210 if (ok) ok = fread(&chunksize, 1, 4, file) == 4; in shaderCacheFirstRunCheck() 213 if (ok) ok = fseek(file, offset + chunksize, SEEK_SET) == 0; in shaderCacheFirstRunCheck() 314 deUint32 chunksize; in shadercacheSave() local 378 chunksize = 4 + 4 + 4 + 4 + length + 4 + (deUint32)shaderstring.length(); in shadercacheSave() 379 fwrite(&chunksize, 1, 4, file); in shadercacheSave()
|
/third_party/curl/tests/ |
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/python/Doc/library/ |
D | concurrent.futures.rst | 41 .. method:: map(func, *iterables, timeout=None, chunksize=1) 62 setting *chunksize* to a positive integer. For very long iterables, 63 using a large value for *chunksize* can significantly improve 65 :class:`ThreadPoolExecutor`, *chunksize* has no effect. 68 Added the *chunksize* argument.
|
D | bz2.rst | 290 >>> def gen_data(chunks=10, chunksize=1000): 291 ... """Yield incremental blocks of chunksize bytes.""" 293 ... yield b"z" * chunksize
|
D | platform.rst | 245 .. function:: libc_ver(executable=sys.executable, lib='', version='', chunksize=16384) 255 The file is read and scanned in chunks of *chunksize* bytes.
|