Home
last modified time | relevance | path

Searched refs:chunk (Results 1 – 25 of 1148) sorted by relevance

12345678910>>...46

/third_party/mesa3d/src/amd/common/
Dac_rgp.c184 static void ac_sqtt_fill_cpu_info(struct sqtt_file_chunk_cpu_info *chunk) in ac_sqtt_fill_cpu_info() argument
191 chunk->header.chunk_id.type = SQTT_FILE_CHUNK_TYPE_CPU_INFO; in ac_sqtt_fill_cpu_info()
192 chunk->header.chunk_id.index = 0; in ac_sqtt_fill_cpu_info()
193 chunk->header.major_version = 0; in ac_sqtt_fill_cpu_info()
194 chunk->header.minor_version = 0; in ac_sqtt_fill_cpu_info()
195 chunk->header.size_in_bytes = sizeof(*chunk); in ac_sqtt_fill_cpu_info()
197 chunk->cpu_timestamp_freq = 1000000000; /* tick set to 1ns */ in ac_sqtt_fill_cpu_info()
199 strncpy((char *)chunk->vendor_id, "Unknown", sizeof(chunk->vendor_id)); in ac_sqtt_fill_cpu_info()
200 strncpy((char *)chunk->processor_brand, "Unknown", sizeof(chunk->processor_brand)); in ac_sqtt_fill_cpu_info()
201 chunk->clock_speed = 0; in ac_sqtt_fill_cpu_info()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader_test.cc61 absl::string_view chunk = reader.Init(node); in TEST() local
62 EXPECT_THAT(chunk, Eq(data.substr(0, chunk.length()))); in TEST()
64 size_t consumed = chunk.length(); in TEST()
68 chunk = reader.Next(); in TEST()
69 EXPECT_THAT(chunk, Eq(data.substr(consumed, chunk.length()))); in TEST()
71 consumed += chunk.length(); in TEST()
95 absl::string_view chunk = reader.Init(node); in TEST() local
96 size_t consumed = chunk.length(); in TEST()
98 chunk = reader.Skip(skip1); in TEST()
99 ASSERT_THAT(chunk, Eq(data.substr(consumed + skip1, chunk.length()))); in TEST()
[all …]
/third_party/node/test/parallel/
Dtest-stream-readable-emit-readable-short-stream.js16 transform: common.mustCall(function(chunk, encoding, callback) { argument
17 this.push(chunk);
28 const chunk = t.read();
29 if (!chunk)
32 assert.strictEqual(chunk.toString(), 'content');
39 transform: common.mustCall(function(chunk, encoding, callback) { argument
40 this.push(chunk);
52 const chunk = t.read();
53 if (!chunk)
55 assert.strictEqual(chunk.toString(), 'content');
[all …]
Dtest-stream2-set-encoding.js75 let chunk;
76 while (null !== (chunk = tr.read(10)))
77 out.push(chunk);
114 let chunk;
115 while (null !== (chunk = tr.read(10)))
116 out.push(chunk);
148 let chunk;
149 while (null !== (chunk = tr.read(13)))
150 out.push(chunk);
180 let chunk;
[all …]
Dtest-readable-from.js19 for await (const chunk of stream) {
20 strictEqual(chunk, expected.shift());
35 for await (const chunk of stream) {
36 strictEqual(chunk, expected.shift());
51 for await (const chunk of stream) {
52 strictEqual(chunk, expected.shift());
61 for await (const chunk of stream) {
62 strictEqual(chunk, expected.shift());
71 for await (const chunk of stream) {
72 strictEqual(chunk.toString(), expected.shift());
[all …]
Dtest-stream-writev.js66 chunk: [104, 101, 108, 108, 111, 44, 32] }, property
68 chunk: [119, 111, 114, 108, 100] }, property
70 chunk: [33] }, property
72 chunk: [10, 97, 110, 100, 32, 116, 104, 101, 110, 46, 46, 46] }, property
74 chunk: [250, 206, 190, 167, 222, 173, 190, 239, 222, 202, 251, 173] }, property
76 { encoding: 'ascii', chunk: 'hello, ' }, property
77 { encoding: 'utf8', chunk: 'world' }, property
78 { encoding: 'buffer', chunk: [33] }, property
79 { encoding: 'latin1', chunk: '\nand then...' }, property
80 { encoding: 'hex', chunk: 'facebea7deadbeefdecafbad' }, property
[all …]
Dtest-stream-readable-unshift.js13 readable.on('data', common.mustCall((chunk) => {
14 assert(Buffer.isBuffer(chunk));
15 assert.strictEqual(chunk.toString('utf8'), string);
29 readable.on('data', common.mustCall((chunk) => {
30 assert.strictEqual(chunk.toString('utf8'), expected.shift());
45 readable.on('data', common.mustCall((chunk) => {
46 assert.strictEqual(chunk.toString(encoding), string);
63 readable.on('data', common.mustCall((chunk) => {
65 assert.strictEqual(chunk.toString(encoding), string);
98 readable.on('data', common.mustCall((chunk) => {
[all …]
/third_party/mesa3d/src/util/perf/
Du_trace.c119 struct u_trace_chunk *chunk,
151 struct u_trace_chunk *chunk, in print_txt_event() argument
220 struct u_trace_chunk *chunk, in print_json_event() argument
276 struct u_trace_chunk *chunk = ptr; in free_chunk() local
278 chunk->utctx->delete_timestamp_buffer(chunk->utctx, chunk->timestamps); in free_chunk()
282 u_vector_foreach(payload, &chunk->payloads) in free_chunk()
284 u_vector_finish(&chunk->payloads); in free_chunk()
286 list_del(&chunk->node); in free_chunk()
287 free(chunk); in free_chunk()
294 struct u_trace_chunk *chunk = list_first_entry(chunks, in free_chunks() local
[all …]
/third_party/littlefs/tests/
Dtest_files.toml34 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE-i);
35 for (lfs_size_t b = 0; b < chunk; b++) {
38 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
49 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE-i);
50 lfs_file_read(&lfs, &file, buffer, chunk) => chunk;
51 for (lfs_size_t b = 0; b < chunk; b++) {
73 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
74 for (lfs_size_t b = 0; b < chunk; b++) {
77 lfs_file_write(&lfs, &file, buffer, chunk) => chunk;
88 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
[all …]
/third_party/openssl/engines/asm/
De_padlock-x86_64.pl47 $chunk="%rbx";
316 mov \$$PADLOCK_CHUNK,$chunk
319 cmp $chunk,$len
320 cmovc $len,$chunk # chunk=len>PADLOCK_CHUNK?PADLOCK_CHUNK:len
321 and $chunk,%rax # out_misaligned?chunk:0
322 mov $len,$chunk
324 and \$$PADLOCK_CHUNK-1,$chunk # chunk%=PADLOCK_CHUNK
327 cmovz %rax,$chunk # chunk=chunk?:PADLOCK_CHUNK
335 mov \$$PADLOCK_CHUNK,$chunk
337 cmovz $chunk,%rax
[all …]
/third_party/node/deps/npm/node_modules/pacote/node_modules/minipass/
Dindex.js94 this.buffer = this.buffer.map(chunk => this[DECODER].write(chunk))
107 write (chunk, encoding, cb) { argument
129 if (!this[OBJECTMODE] && !B.isBuffer(chunk)) {
130 if (isArrayBufferView(chunk))
131 chunk = B.from(chunk.buffer, chunk.byteOffset, chunk.byteLength)
132 else if (isArrayBuffer(chunk))
133 chunk = B.from(chunk)
134 else if (typeof chunk !== 'string')
141 if (!this.objectMode && !chunk.length) {
152 if (typeof chunk === 'string' && !this[OBJECTMODE] &&
[all …]
/third_party/node/deps/npm/node_modules/tar/node_modules/minipass/
Dindex.js94 this.buffer = this.buffer.map(chunk => this[DECODER].write(chunk))
107 write (chunk, encoding, cb) { argument
129 if (!this[OBJECTMODE] && !B.isBuffer(chunk)) {
130 if (isArrayBufferView(chunk))
131 chunk = B.from(chunk.buffer, chunk.byteOffset, chunk.byteLength)
132 else if (isArrayBuffer(chunk))
133 chunk = B.from(chunk)
134 else if (typeof chunk !== 'string')
141 if (!this.objectMode && !chunk.length) {
152 if (typeof chunk === 'string' && !this[OBJECTMODE] &&
[all …]
/third_party/node/deps/npm/node_modules/minizlib/node_modules/minipass/
Dindex.js94 this.buffer = this.buffer.map(chunk => this[DECODER].write(chunk))
107 write (chunk, encoding, cb) { argument
129 if (!this[OBJECTMODE] && !B.isBuffer(chunk)) {
130 if (isArrayBufferView(chunk))
131 chunk = B.from(chunk.buffer, chunk.byteOffset, chunk.byteLength)
132 else if (isArrayBuffer(chunk))
133 chunk = B.from(chunk)
134 else if (typeof chunk !== 'string')
141 if (!this.objectMode && !chunk.length) {
152 if (typeof chunk === 'string' && !this[OBJECTMODE] &&
[all …]
/third_party/node/deps/npm/node_modules/fs-minipass/node_modules/minipass/
Dindex.js94 this.buffer = this.buffer.map(chunk => this[DECODER].write(chunk))
107 write (chunk, encoding, cb) { argument
129 if (!this[OBJECTMODE] && !B.isBuffer(chunk)) {
130 if (isArrayBufferView(chunk))
131 chunk = B.from(chunk.buffer, chunk.byteOffset, chunk.byteLength)
132 else if (isArrayBuffer(chunk))
133 chunk = B.from(chunk)
134 else if (typeof chunk !== 'string')
141 if (!this.objectMode && !chunk.length) {
152 if (typeof chunk === 'string' && !this[OBJECTMODE] &&
[all …]
/third_party/node/deps/npm/node_modules/tar/lib/
Dparse.js104 [CONSUMEHEADER] (chunk, position) {
107 header = new Header(chunk, position, this[EX], this[GEX])
204 [CONSUMEBODY] (chunk, position) {
208 const c = (br >= chunk.length && position === 0) ? chunk
209 : chunk.slice(position, position + br)
222 [CONSUMEMETA] (chunk, position) {
224 const ret = this[CONSUMEBODY](chunk, position)
275 write (chunk) {
280 if (this[UNZIP] === null && chunk) {
282 chunk = Buffer.concat([this[BUFFER], chunk])
[all …]
/third_party/libxml2/python/tests/
Dsync.py46 chunk="""<foo><bar2/>""" variable
48 ctxt.parseChunk(chunk, len(chunk), 0)
58 chunk="""<foo><bar2></bar2>""" variable
60 ctxt.parseChunk(chunk, len(chunk), 0)
70 chunk="""<foo><bar2>""" variable
72 ctxt.parseChunk(chunk, len(chunk), 0)
82 chunk="""<foo><bar2 a="1" b='2' />""" variable
84 ctxt.parseChunk(chunk, len(chunk), 0)
95 chunk="""<foo><bar2 a="1" b='2' >""" variable
97 ctxt.parseChunk(chunk, len(chunk), 0)
[all …]
/third_party/node/deps/npm/node_modules/sorted-union-stream/node_modules/readable-stream/lib/
D_stream_writable.js44 function WriteReq(chunk, encoding, cb) { argument
45 this.chunk = chunk;
174 function validChunk(stream, state, chunk, cb) { argument
176 if (!util.isBuffer(chunk) &&
177 !util.isString(chunk) &&
178 !util.isNullOrUndefined(chunk) &&
190 Writable.prototype.write = function(chunk, encoding, cb) { argument
199 if (util.isBuffer(chunk))
209 else if (validChunk(this, state, chunk, cb)) {
211 ret = writeOrBuffer(this, state, chunk, encoding, cb);
[all …]
/third_party/pulseaudio/src/pulsecore/
Dmemblockq.c42 pa_memchunk chunk; member
143 …ULL) && PA_UNLIKELY(bq->current_read->index + (int64_t) bq->current_read->chunk.length <= bq->read… in fix_current_read()
163 …while (PA_UNLIKELY(bq->current_write->index + (int64_t) bq->current_write->chunk.length <= bq->wri… in fix_current_write()
205 pa_memblock_unref(q->chunk.memblock); in drop_block()
219 while (bq->blocks && (bq->blocks->index + (int64_t) bq->blocks->chunk.length <= boundary)) in drop_backlog()
237 …end = bq->blocks_tail ? bq->blocks_tail->index + (int64_t) bq->blocks_tail->chunk.length : bq->wri… in can_push()
279 pa_memchunk chunk; in pa_memblockq_push() local
295 chunk = *uchunk; in pa_memblockq_push()
304 while (bq->write_index + (int64_t) chunk.length > q->index) in pa_memblockq_push()
319 if (bq->write_index >= q->index + (int64_t) q->chunk.length) in pa_memblockq_push()
[all …]
/third_party/node/deps/npm/node_modules/concat-stream/node_modules/readable-stream/lib/
D_stream_writable.js36 function WriteReq(chunk, encoding, cb) { argument
37 this.chunk = chunk;
85 function _uint8ArrayToBuffer(chunk) { argument
86 return Buffer.from(chunk);
297 function validChunk(stream, state, chunk, cb) { argument
301 if (chunk === null) {
303 } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
314 Writable.prototype.write = function (chunk, encoding, cb) { argument
317 var isBuf = !state.objectMode && _isUint8Array(chunk);
319 if (isBuf && !Buffer.isBuffer(chunk)) {
[all …]
/third_party/node/deps/npm/node_modules/from2/node_modules/readable-stream/lib/
D_stream_writable.js36 function WriteReq(chunk, encoding, cb) { argument
37 this.chunk = chunk;
85 function _uint8ArrayToBuffer(chunk) { argument
86 return Buffer.from(chunk);
297 function validChunk(stream, state, chunk, cb) { argument
301 if (chunk === null) {
303 } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
314 Writable.prototype.write = function (chunk, encoding, cb) { argument
317 var isBuf = !state.objectMode && _isUint8Array(chunk);
319 if (isBuf && !Buffer.isBuffer(chunk)) {
[all …]
/third_party/node/deps/npm/node_modules/through2/node_modules/readable-stream/lib/
D_stream_writable.js36 function WriteReq(chunk, encoding, cb) { argument
37 this.chunk = chunk;
85 function _uint8ArrayToBuffer(chunk) { argument
86 return Buffer.from(chunk);
297 function validChunk(stream, state, chunk, cb) { argument
301 if (chunk === null) {
303 } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
314 Writable.prototype.write = function (chunk, encoding, cb) { argument
317 var isBuf = !state.objectMode && _isUint8Array(chunk);
319 if (isBuf && !Buffer.isBuffer(chunk)) {
[all …]
/third_party/node/deps/npm/node_modules/stream-iterate/node_modules/readable-stream/lib/
D_stream_writable.js36 function WriteReq(chunk, encoding, cb) { argument
37 this.chunk = chunk;
85 function _uint8ArrayToBuffer(chunk) { argument
86 return Buffer.from(chunk);
297 function validChunk(stream, state, chunk, cb) { argument
301 if (chunk === null) {
303 } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
314 Writable.prototype.write = function (chunk, encoding, cb) { argument
317 var isBuf = !state.objectMode && _isUint8Array(chunk);
319 if (isBuf && !Buffer.isBuffer(chunk)) {
[all …]
/third_party/node/deps/npm/node_modules/readable-stream/lib/
D_stream_writable.js29 function WriteReq(chunk, encoding, cb) { argument
30 this.chunk = chunk;
74 function _uint8ArrayToBuffer(chunk) { argument
75 return Buffer.from(chunk);
270 function validChunk(stream, state, chunk, cb) { argument
273 if (chunk === null) {
275 } else if (typeof chunk !== 'string' && !state.objectMode) {
276 er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);
288 Writable.prototype.write = function (chunk, encoding, cb) { argument
292 var isBuf = !state.objectMode && _isUint8Array(chunk);
[all …]
/third_party/node/deps/npm/node_modules/fs-write-stream-atomic/node_modules/readable-stream/lib/
D_stream_writable.js36 function WriteReq(chunk, encoding, cb) { argument
37 this.chunk = chunk;
85 function _uint8ArrayToBuffer(chunk) { argument
86 return Buffer.from(chunk);
297 function validChunk(stream, state, chunk, cb) { argument
301 if (chunk === null) {
303 } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
314 Writable.prototype.write = function (chunk, encoding, cb) { argument
317 var isBuf = !state.objectMode && _isUint8Array(chunk);
319 if (isBuf && !Buffer.isBuffer(chunk)) {
[all …]
/third_party/node/deps/npm/node_modules/flush-write-stream/node_modules/readable-stream/lib/
D_stream_writable.js36 function WriteReq(chunk, encoding, cb) { argument
37 this.chunk = chunk;
85 function _uint8ArrayToBuffer(chunk) { argument
86 return Buffer.from(chunk);
297 function validChunk(stream, state, chunk, cb) { argument
301 if (chunk === null) {
303 } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
314 Writable.prototype.write = function (chunk, encoding, cb) { argument
317 var isBuf = !state.objectMode && _isUint8Array(chunk);
319 if (isBuf && !Buffer.isBuffer(chunk)) {
[all …]

12345678910>>...46