/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 | 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 == UINT64_MAX) { in http_buf_read() [all …]
|
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/ |
D | mtest01.c | 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() 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() 150 getpid(), bytecount, chunksize); in child_loop_alloc() 151 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 | 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() 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() 810 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/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 | 404 deUint32 chunksize = 0; in shaderCacheFirstRunCheck() local 411 if (ok) ok = fread(&chunksize, 1, 4, file) == 4; in shaderCacheFirstRunCheck() 414 if (ok) ok = fseek(file, offset + chunksize, SEEK_SET) == 0; in shaderCacheFirstRunCheck() 511 deUint32 chunksize; in shadercacheSave() local 574 chunksize = 4 + 4 + 4 + 4 + length + 4 + (deUint32)shaderstring.length(); in shadercacheSave() 575 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.
|
/third_party/curl/lib/vtls/ |
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()
|