Home
last modified time | relevance | path

Searched refs:chunks (Results 1 – 25 of 431) sorted by relevance

12345678910>>...18

/third_party/nghttp2/src/
Dmemchunk_test.cc91 Memchunks16 chunks(&pool); in test_memchunks_append() local
93 chunks.append("012"); in test_memchunks_append()
95 auto m = chunks.tail; in test_memchunks_append()
100 chunks.append("3456789abcdef@"); in test_memchunks_append()
105 m = chunks.tail; in test_memchunks_append()
109 CU_ASSERT(17 == chunks.rleft()); in test_memchunks_append()
114 nread = chunks.remove(buf, 8); in test_memchunks_append()
118 CU_ASSERT(9 == chunks.rleft()); in test_memchunks_append()
120 nread = chunks.remove(buf, sizeof(buf)); in test_memchunks_append()
124 CU_ASSERT(0 == chunks.rleft()); in test_memchunks_append()
[all …]
/third_party/python/Lib/
Dtextwrap.py176 chunks = self.wordsep_re.split(text)
178 chunks = self.wordsep_simple_re.split(text)
179 chunks = [c for c in chunks if c]
180 return chunks
182 def _fix_sentence_endings(self, chunks): argument
193 while i < len(chunks)-1:
194 if chunks[i+1] == " " and patsearch(chunks[i]):
195 chunks[i+1] = " "
241 def _wrap_chunks(self, chunks): argument
267 chunks.reverse()
[all …]
/third_party/libsnd/src/
Dchunk.c96 if (pchk->chunks [k].hash == hash) in psf_next_chunk_iterator()
114 pchk->chunks = calloc (pchk->count, sizeof (READ_CHUNK)) ; in psf_store_read_chunk()
119 { READ_CHUNK * old_ptr = pchk->chunks ; in psf_store_read_chunk()
122 pchk->chunks = realloc (old_ptr, new_count * sizeof (READ_CHUNK)) ; in psf_store_read_chunk()
123 if (pchk->chunks == NULL) in psf_store_read_chunk()
124 { pchk->chunks = old_ptr ; in psf_store_read_chunk()
130 pchk->chunks [pchk->used] = *rchunk ; in psf_store_read_chunk()
168 if (pchk->chunks [k].hash == hash) in psf_find_read_chunk_str()
179 if (pchk->chunks [k].mark32 == marker) in psf_find_read_chunk_m32()
229 pchk->chunks = calloc (pchk->count, sizeof (WRITE_CHUNK)) ; in psf_save_write_chunk()
[all …]
/third_party/node/test/parallel/
Dtest-http-1.0-keep-alive.js43 chunks: ['OK'] property
45 chunks: [] property
62 chunks: ['OK'] property
64 chunks: [] property
81 chunks: ['OK'] property
83 chunks: [] property
100 chunks: ['OK'] property
102 chunks: [] property
123 ctx.chunks.slice(0, -1).forEach(function(chunk) { res.write(chunk); });
124 res.end(ctx.chunks[ctx.chunks.length - 1]);
Dtest-stream2-writable.js46 const chunks = new Array(50); constant
47 for (let i = 0; i < chunks.length; i++) {
48 chunks[i] = 'x'.repeat(i);
59 assert.deepStrictEqual(tw.buffer, chunks);
62 chunks.forEach(function(chunk) {
77 assert.deepStrictEqual(tw.buffer, chunks);
82 tw.write(chunks[i++]);
83 if (i < chunks.length)
100 assert.deepStrictEqual(tw.buffer, chunks);
112 ret = tw.write(chunks[i++]);
[all …]
Dtest-stream-readable-setEncoding-existing-buffers.js14 const chunks = []; variable
15 r.on('data', (chunk) => chunks.push(chunk));
18 assert.deepStrictEqual(chunks, ['ab']);
33 const chunks = []; variable
34 r.on('data', (chunk) => chunks.push(chunk));
37 assert.deepStrictEqual(chunks, ['��']);
54 const chunks = []; variable
55 r.on('data', (chunk) => chunks.push(chunk));
58 assert.deepStrictEqual(chunks, ['��']);
/third_party/PyYAML/lib/yaml/
Dscanner.py984 chunks = []
1006 chunks.extend(breaks)
1011 chunks.append(self.prefix(length))
1024 chunks.append(' ')
1026 chunks.append(line_break)
1044 chunks.append(line_break)
1046 chunks.extend(breaks)
1049 return ScalarToken(''.join(chunks), False, start_mark, end_mark,
1108 chunks = []
1113 chunks.append(self.scan_line_break())
[all …]
/third_party/parse5/packages/parse5-parser-stream/test/utils/
Dparse-chunked.ts10 ): { node: TreeAdapterTypeMap['document']; chunks: string[] } {
14 const chunks = makeChunks(test.input, minChunkSize, maxChunkSize); constant
19 for (let i = 0; i < chunks.length - 1; i++) {
20 if (typeof chunks[i] !== 'string') {
23 parserStream.write(chunks[i]);
26 parserStream.end(chunks[chunks.length - 1]);
30 chunks,
/third_party/node/test/fixtures/wpt/FileAPI/blob/
DBlob-stream.any.js40 const chunks = await read_all_chunks(stream); constant
41 for (let [index, value] of chunks.entries()) {
49 const chunks = await read_all_chunks(stream); constant
50 assert_array_equals(chunks, []);
58 const chunks = await read_all_chunks(stream); constant
59 assert_array_equals(chunks, input_arr);
69 const chunks = await read_all_chunks(stream, /*perform_gc=*/true); constant
70 assert_array_equals(chunks, input_arr);
/third_party/node/benchmark/string_decoder/
Dstring-decoder.js19 const chunks = [];
38 chunks.push(Buffer.from(str, encoding));
41 chunks.push(str);
63 chunks.push(str);
65 chunks.push(Buffer.from(str, encoding));
71 chunks.push(Buffer.from(str.substring(0, len), 'utf8'));
76 const nChunks = chunks.length;
81 sd.write(chunks[j]);
/third_party/skia/src/utils/
DSkBitSet.h49 Chunk* chunks = fChunks.get(); in set() local
51 std::memset(chunks, 0xFF, sizeof(Chunk) * numChunks); in set()
62 Chunk* chunks = fChunks.get(); in reset() local
64 std::memset(chunks, 0, sizeof(Chunk) * numChunks); in reset()
79 const Chunk* chunks = fChunks.get(); in forEachSetIndex() local
82 if (Chunk chunk = chunks[i]) { // There are set bits in forEachSetIndex()
97 const Chunk* chunks = fChunks.get(); in findFirst() local
100 if (Chunk chunk = chunks[i]) { // There are set bits in findFirst()
111 const Chunk* chunks = fChunks.get(); in findFirstUnset() local
114 if (Chunk chunk = ~chunks[i]) { // if there are unset bits ... in findFirstUnset()
/third_party/python/Lib/distutils/
Dfancy_getopt.py388 chunks = re.split(r'( +|-+)', text)
389 chunks = [ch for ch in chunks if ch] # ' - ' results in empty strings
392 while chunks:
396 while chunks:
397 l = len(chunks[0])
399 cur_line.append(chunks[0])
400 del chunks[0]
408 if chunks: # any chunks left to process?
413 cur_line.append(chunks[0][0:width])
414 chunks[0] = chunks[0][width:]
[all …]
/third_party/node/deps/npm/node_modules/sshpk/lib/
Ded-compat.js24 this.chunks = []; property in Verifier
31 this.chunks.push(chunk);
38 this.chunks.push(chunk);
58 new Uint8Array(Buffer.concat(this.chunks)),
72 this.chunks = []; property in Signer
79 this.chunks.push(chunk);
86 this.chunks.push(chunk);
91 new Uint8Array(Buffer.concat(this.chunks)),
/third_party/python/Lib/json/
Dencoder.py199 chunks = self.iterencode(o, _one_shot=True)
200 if not isinstance(chunks, (list, tuple)):
201 chunks = list(chunks)
202 return ''.join(chunks)
320 chunks = _iterencode_list(value, _current_indent_level)
322 chunks = _iterencode_dict(value, _current_indent_level)
324 chunks = _iterencode(value, _current_indent_level)
325 yield from chunks
400 chunks = _iterencode_list(value, _current_indent_level)
402 chunks = _iterencode_dict(value, _current_indent_level)
[all …]
/third_party/mesa3d/src/intel/common/
Dintel_urb_config.c158 unsigned chunks[4]; in intel_get_urb_config() local
165 chunks[i] = DIV_ROUND_UP(min_entries[i] * entry_size_bytes[i], in intel_get_urb_config()
170 chunk_size_bytes) - chunks[i]; in intel_get_urb_config()
172 chunks[i] = 0; in intel_get_urb_config()
176 total_needs += chunks[i]; in intel_get_urb_config()
192 chunks[i] += additional; in intel_get_urb_config()
197 chunks[MESA_SHADER_GEOMETRY] += remaining_space; in intel_get_urb_config()
203 total_chunks += chunks[i]; in intel_get_urb_config()
211 entries[i] = chunks[i] * chunk_size_bytes / entry_size_bytes[i]; in intel_get_urb_config()
250 next_urb += chunks[i]; in intel_get_urb_config()
/third_party/ltp/utils/benchmark/ebizzy-0.3/
Debizzy.c62 static unsigned int chunks; variable
126 chunks = 10; in read_options()
147 chunks = atoi(optarg); in read_options()
148 if (chunks == 0) in read_options()
197 printf("chunks %u\n", chunks); in read_options()
258 size, chunks, chunk_size); in alloc_mem()
293 mem = alloc_mem(chunks * sizeof(record_t *)); in allocate()
296 hole_mem = alloc_mem(chunks * sizeof(record_t *)); in allocate()
298 for (i = 0; i < chunks; i++) { in allocate()
307 for (i = 0; i < chunks; i++) in allocate()
[all …]
/third_party/ffmpeg/tools/
Dismindex.c76 int chunks; member
203 for (j = 0; j < track->chunks; j++) { in write_fragments()
344 track->chunks = avio_rb32(f); in read_tfra()
345 track->offsets = av_mallocz_array(track->chunks, sizeof(*track->offsets)); in read_tfra()
347 track->chunks = 0; in read_tfra()
353 for (i = 0; i < track->chunks; i++) { in read_tfra()
371 if (track->chunks > 0) { in read_tfra()
372 track->offsets[track->chunks - 1].duration = track->offsets[0].time + in read_tfra()
374 track->offsets[track->chunks - 1].time; in read_tfra()
377 for (i = 0; i < track->chunks; i++) { in read_tfra()
[all …]
/third_party/harfbuzz/src/
Dhb-pool.hh44 for (chunk_t *_ : chunks) ::free (_); in fini()
46 chunks.fini (); in fini()
53 if (unlikely (!chunks.alloc (chunks.length + 1))) return nullptr; in alloc()
56 chunks.push (chunk); in alloc()
96 hb_vector_t<chunk_t *> chunks; member
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-pool.hh44 for (chunk_t *_ : chunks) hb_free (_); in fini()
46 chunks.fini (); in fini()
53 if (unlikely (!chunks.alloc (chunks.length + 1))) return nullptr; in alloc()
56 chunks.push (chunk); in alloc()
96 hb_vector_t<chunk_t *> chunks; member
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-pool.hh44 + hb_iter (chunks) in fini()
48 chunks.fini (); in fini()
55 if (unlikely (!chunks.alloc (chunks.length + 1))) return nullptr; in alloc()
58 chunks.push (chunk); in alloc()
98 hb_vector_t<chunk_t *> chunks; member
/third_party/ltp/runtest/
Dipc5 # spawns 5 children to write 100 chunks of 4090 bytes to a named pipe
8 # spawns 5 children to write 100 chunks of 4090 bytes to a named pipe
12 # spawns 5 children to write 100 chunks of 4090 bytes to an unnamed pipe
15 # spawns 5 children to write 100 chunks of 4090 bytes to an unnamed pipe
18 # spawns 5 children to write 10 chunks of 5000 bytes to a named pipe
21 # spawns 5 children to write 10 chunks of 5000 bytes to an unnamed pipe
24 # spawns 5 children to write 10 chunks of 5000 bytes to a named pipe
28 # spawns 5 children to write 10 chunks of 5000 bytes to an unnamed pipe
/third_party/ffmpeg/libavcodec/
Dhapdec.c68 ctx->chunks[i].compressor = bytestream2_get_byte(gbc) << 4; in hap_parse_decode_instructions()
78 ctx->chunks[i].compressed_size = bytestream2_get_le32(gbc); in hap_parse_decode_instructions()
88 ctx->chunks[i].compressed_offset = bytestream2_get_le32(gbc); in hap_parse_decode_instructions()
107 ctx->chunks[i].compressed_offset = running_size; in hap_parse_decode_instructions()
108 if (ctx->chunks[i].compressed_size > UINT32_MAX - running_size) in hap_parse_decode_instructions()
110 running_size += ctx->chunks[i].compressed_size; in hap_parse_decode_instructions()
122 if (ctx->chunks[i].compressed_offset != running_offset in hap_can_use_tex_in_place()
123 || ctx->chunks[i].compressor != HAP_COMP_NONE) in hap_can_use_tex_in_place()
125 running_offset += ctx->chunks[i].compressed_size; in hap_can_use_tex_in_place()
159 ctx->chunks[0].compressor = section_type & 0xF0; in hap_parse_frame_header()
[all …]
/third_party/node/deps/npm/node_modules/chalk/
Dtemplates.js30 const chunks = args.trim().split(/\s*,\s*/g);
33 for (const chunk of chunks) {
95 const chunks = []; variable
105 chunks.push(styles.length === 0 ? str : buildStyle(chalk, styles)(str));
112 chunks.push(buildStyle(chalk, styles)(chunk.join('')));
120 chunks.push(chunk.join(''));
127 return chunks.join('');
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_bo.c60 struct zink_sparse_backing_chunk *chunks; member
339 uint32_t cur_num_pages = backing->chunks[idx].end - backing->chunks[idx].begin; in sparse_backing_alloc()
360 best_backing->chunks = CALLOC(best_backing->max_chunks, in sparse_backing_alloc()
361 sizeof(*best_backing->chunks)); in sparse_backing_alloc()
362 if (!best_backing->chunks) { in sparse_backing_alloc()
377 FREE(best_backing->chunks); in sparse_backing_alloc()
387 best_backing->chunks[0].begin = 0; in sparse_backing_alloc()
388 best_backing->chunks[0].end = pages; in sparse_backing_alloc()
398 *pstart_page = best_backing->chunks[best_idx].begin; in sparse_backing_alloc()
399 best_backing->chunks[best_idx].begin += *pnum_pages; in sparse_backing_alloc()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Dextension_test.cc60 for (size_t chunks = 0; chunks < 10; ++chunks) { in TEST() local
74 for (size_t chunks = 0; chunks < 10; ++chunks) { in TEST() local

12345678910>>...18