Home
last modified time | relevance | path

Searched refs:chunksize (Results 1 – 25 of 75) sorted by relevance

123

/external/python/cpython2/Lib/
Dchunk.py65 self.chunksize = struct.unpack(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 …]
/external/python/cpython3/Lib/
Dchunk.py65 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 …]
/external/ltp/testcases/kernel/mem/mtest01/
Dmtest01.c51 static int chunksize = 1024*1024; variable
67 static void parse_mtest_options(char *str_chunksize, int *chunksize, in parse_mtest_options() argument
72 if (tst_parse_int(str_chunksize, chunksize, 1, INT_MAX)) in parse_mtest_options()
100 static void do_write_mem(char *mem, int chunksize) in do_write_mem() argument
104 for (i = 0; i < chunksize; i += pagesz) in do_write_mem()
119 parse_mtest_options(opt_chunksize, &chunksize, in setup()
152 mem = SAFE_MALLOC(chunksize); in child_loop_alloc()
154 do_write_mem(mem, chunksize); in child_loop_alloc()
159 getpid(), bytecount, chunksize); in child_loop_alloc()
160 bytecount += chunksize; in child_loop_alloc()
/external/python/cpython3/Lib/multiprocessing/
Dpool.py359 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 …]
/external/python/cpython2/Lib/multiprocessing/
Dpool.py248 def map(self, func, iterable, chunksize=None): argument
253 return self.map_async(func, iterable, chunksize).get()
255 def imap(self, func, iterable, chunksize=1): argument
260 if chunksize == 1:
266 assert chunksize > 1
267 task_batches = Pool._get_tasks(func, iterable, chunksize)
273 def imap_unordered(self, func, iterable, chunksize=1): argument
278 if chunksize == 1:
284 assert chunksize > 1
285 task_batches = Pool._get_tasks(func, iterable, chunksize)
[all …]
/external/python/apitools/apitools/base/py/
Dtransfer_test.py55 chunksize = 10
57 six.StringIO(), chunksize=chunksize, total_size=total_size)
58 self.assertEqual(chunksize - 1,
69 six.StringIO(), chunksize=10, total_size=total_size)
79 default_chunksize = download.chunksize
80 for chunksize in (100, default_chunksize):
81 download.chunksize = chunksize
84 download.chunksize + start - 1,
87 start, chunksize))
202 download_stream, chunksize=26, total_size=52)
[all …]
Dcompression.py31 chunksize=16777216): argument
77 data = in_stream.read(chunksize)
82 if data_length < chunksize:
Dtransfer.py82 def __init__(self, stream, close_stream=False, chunksize=None, argument
97 self.chunksize = chunksize or 1048576
284 http_request.headers['Range'] = 'bytes=0-%d' % (self.chunksize - 1,)
391 alternate = start + self.chunksize - 1
584 close_stream=False, chunksize=None, auto_transfer=True, argument
588 stream, close_stream=close_stream, chunksize=chunksize,
916 def __ValidateChunksize(self, chunksize=None): argument
919 chunksize = chunksize or self.chunksize
920 if chunksize % self.__server_chunk_granularity:
954 self.__ValidateChunksize(self.chunksize)
[all …]
/external/python/google-api-python-client/googleapiclient/
Dhttp.py285 def chunksize(self): member in MediaUpload
425 def __init__(self, fd, mimetype, chunksize=DEFAULT_CHUNK_SIZE, resumable=False): argument
445 if not (chunksize == -1 or chunksize > 0):
447 self._chunksize = chunksize
453 def chunksize(self): member in MediaIoBaseUpload
549 self, filename, mimetype=None, chunksize=DEFAULT_CHUNK_SIZE, resumable=False argument
574 fd, mimetype, chunksize=chunksize, resumable=resumable
595 chunksize=d["_chunksize"],
612 chunksize=DEFAULT_CHUNK_SIZE, argument
631 fd, mimetype, chunksize=chunksize, resumable=resumable
[all …]
/external/python/google-api-python-client/tests/
Dtest_http.py236 upload = MediaFileUpload(datafile("small.png"), chunksize=500, resumable=True)
240 self.assertEqual(500, upload.chunksize())
249 self.assertEqual(500, new_upload.chunksize())
258 chunksize=-2,
264 b"abcdef", mimetype="text/plain", chunksize=10, resumable=True
267 self.assertEqual(10, media.chunksize())
275 datafile("small.png"), chunksize=500, resumable=True
308 fd=fd, mimetype="image/png", chunksize=500, resumable=True
313 self.assertEqual(500, upload.chunksize())
319 fd=f, mimetype="image/png", chunksize=500, resumable=True
[all …]
/external/python/apitools/samples/storage_sample/
Ddownloads_test.py132 for chunksize in (2, 3, 15, 100):
134 self.__download.chunksize = chunksize
142 for chunksize in (1048576, 40 * 1048576):
144 self.__download.chunksize = chunksize
/external/dtc/
Ddata.c85 size_t chunksize, ret; in data_copy_file() local
88 chunksize = 4096; in data_copy_file()
90 chunksize = maxlen - d.len; in data_copy_file()
92 d = data_grow_for(d, chunksize); in data_copy_file()
93 ret = fread(d.val + d.len, 1, chunksize, f); in data_copy_file()
/external/newfs_msdos/
Dmkfs_msdos.c267 ssize_t chunksize; in mkfs_msdos() local
636 chunksize = getchunksize(); in mkfs_msdos()
637 physbuf = malloc(chunksize); in mkfs_msdos()
642 physbuf_end = physbuf + chunksize; in mkfs_msdos()
776 n = write(fd, physbuf, chunksize); in mkfs_msdos()
777 if (n != chunksize) { in mkfs_msdos()
854 static int chunksize; in getchunksize() local
856 if (chunksize != 0) in getchunksize()
857 return ((ssize_t)chunksize); in getchunksize()
865 len = sizeof(chunksize); in getchunksize()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/
Ddlmalloc.c1731 #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 …]
/external/libffi/src/
Ddlmalloc.c1731 #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 …]
/external/dlmalloc/
Dmalloc.c2262 #define chunksize(p) ((p)->head & ~(FLAG_BITS)) macro
3074 (chunksize(p))))->prev_foot ^ mparams.magic))
3254 size_t sz = chunksize(p); in do_check_mmapped_chunk()
3279 size_t sz = chunksize(p); in do_check_free_chunk()
3319 size_t tsize = chunksize(t); in do_check_tree()
3330 assert(chunksize(u) == tsize); in do_check_tree()
3357 assert(chunksize(u->child[0]) < chunksize(u->child[1])); in do_check_tree()
3385 size_t size = chunksize(p); in do_check_smallbin()
3391 assert(p->bk == b || chunksize(p->bk) == chunksize(p)); in do_check_smallbin()
3402 size_t size = chunksize(x); in bin_find()
[all …]
/external/libpcap/
Ddlpisubs.c319 bpf_u_int32 ss, chunksize; in pcap_conf_bufmod() local
354 chunksize = CHUNKSIZE; in pcap_conf_bufmod()
355 if (strioctl(p->fd, SBIOCSCHUNK, sizeof(chunksize), (char *)&chunksize) in pcap_conf_bufmod()
/external/skqp/tools/
Dembed_resources.py13 def bytes_from_file(f, chunksize=8192): argument
15 chunk = f.read(chunksize)
/external/nist-sip/java/gov/nist/javax/sip/stack/
DIOHandler.java110 int chunksize = 8 * 1024; in writeChunks() local
111 for (int p = 0; p < length; p += chunksize) { in writeChunks()
112 int chunk = p + chunksize < length ? chunksize : length - p; in writeChunks()
/external/skia/tools/
Dembed_resources.py13 def bytes_from_file(f, chunksize=8192): argument
15 chunk = f.read(chunksize)
/external/python/cpython3/Lib/concurrent/futures/
Dprocess.py183 def _get_chunks(*iterables, chunksize): argument
187 chunk = tuple(itertools.islice(it, chunksize))
702 def map(self, fn, *iterables, timeout=None, chunksize=1): argument
723 if chunksize < 1:
727 _get_chunks(*iterables, chunksize=chunksize),
/external/python/cpython2/Modules/
Dbz2module.c413 int chunksize; in Util_ReadAhead() local
432 chunksize = Util_UnivNewlineRead(&bzerror, f->fp, f->f_buf, in Util_ReadAhead() local
435 f->pos += chunksize; in Util_ReadAhead()
445 f->f_bufend = f->f_buf + chunksize; in Util_ReadAhead()
510 size_t bytesread, buffersize, chunksize; in BZ2File_read() local
555 chunksize = Util_UnivNewlineRead(&bzerror, self->fp, in BZ2File_read() local
559 self->pos += chunksize; in BZ2File_read()
561 bytesread += chunksize; in BZ2File_read()
1022 int chunksize; in BZ2File_seek() local
1060 chunksize = Util_UnivNewlineRead( in BZ2File_seek() local
[all …]
/external/fonttools/Lib/fontTools/misc/
DxmlWriter.py130 chunksize = 8
135 for j in range(0, hexlinelength, chunksize):
136 line = line + white + hexline[j:j+chunksize]
/external/python/cpython3/Lib/test/
Dtest_platform.py312 chunksize = 16384
315 f.write(b'x'*(chunksize - 10))
317 self.assertEqual(platform.libc_ver(filename, chunksize=chunksize),
/external/rust/crates/libz-sys/src/zlib-ng/
Dfunctable.c235 functable.chunksize = &chunksize_c; in chunksize_stub()
241 functable.chunksize = &chunksize_sse2; in chunksize_stub()
245 functable.chunksize = &chunksize_neon; in chunksize_stub()
248 return functable.chunksize(); in chunksize_stub()

123