/third_party/boost/libs/iostreams/test/detail/ |
D | verification.hpp | 68 BOOST_CHAR buf_one[chunk_size]; in compare_streams_in_chunks() 69 BOOST_CHAR buf_two[chunk_size]; in compare_streams_in_chunks() 70 first.read(buf_one, chunk_size); in compare_streams_in_chunks() 71 second.read(buf_two, chunk_size); in compare_streams_in_chunks() 138 for (j = 0; j < chunk_size; ++j) in test_seekable_in_chars() 140 io.seekp(-chunk_size, BOOST_IOS::cur); in test_seekable_in_chars() 141 for (j = 0; j < chunk_size; ++j) in test_seekable_in_chars() 144 io.seekg(-chunk_size, BOOST_IOS::cur); in test_seekable_in_chars() 145 for (j = 0; j < chunk_size; ++j) in test_seekable_in_chars() 152 for (i = 0; i < data_reps; ++i, off += chunk_size) { in test_seekable_in_chars() [all …]
|
/third_party/libsnd/src/ |
D | svx.c | 133 uint32_t chunk_size, marker ; in svx_read_header() local 149 { psf_binheader_readf (psf, "Em4", &marker, &chunk_size) ; in svx_read_header() 156 if (chunk_size != psf->filelength - 2 * sizeof (chunk_size)) in svx_read_header() 157 …g_printf (psf, "FORM : %u (should be %u)\n", chunk_size, (uint32_t) psf->filelength - 2 * sizeof (… in svx_read_header() 159 psf_log_printf (psf, "FORM : %u\n", chunk_size) ; in svx_read_header() 173 psf_log_printf (psf, " VHDR : %d\n", chunk_size) ; in svx_read_header() 216 psf->datalength = chunk_size ; in svx_read_header() 241 psf_log_printf (psf, " %M : %u\n", marker, chunk_size) ; in svx_read_header() 243 if (strlen (psf->file.name.c) != chunk_size) in svx_read_header() 244 { if (chunk_size > sizeof (psf->file.name.c) - 1) in svx_read_header() [all …]
|
D | aiff.c | 402 uint32_t chunk_size = 0, FORMsize, SSNDsize, bytesread, mark_count = 0 ; in aiff_read_header() local 430 size_t jump = chunk_size & 1 ; in aiff_read_header() 432 marker = chunk_size = 0 ; in aiff_read_header() 433 psf_binheader_readf (psf, "Ejm4", jump, &marker, &chunk_size) ; in aiff_read_header() 443 psf_store_read_chunk_u32 (&psf->rchunks, marker, psf_ftell (psf), chunk_size) ; in aiff_read_header() 450 FORMsize = chunk_size ; in aiff_read_header() 468 else if (FORMsize != psf->filelength - 2 * SIGNED_SIZEOF (chunk_size)) in aiff_read_header() 469 { chunk_size = psf->filelength - 2 * sizeof (chunk_size) ; in aiff_read_header() 470 psf_log_printf (psf, "FORM : %u (should be %u)\n %M\n", FORMsize, chunk_size, marker) ; in aiff_read_header() 471 FORMsize = chunk_size ; in aiff_read_header() [all …]
|
D | caf.c | 102 static int caf_read_chanmap (SF_PRIVATE * psf, sf_count_t chunk_size) ; 103 static int caf_read_strings (SF_PRIVATE * psf, sf_count_t chunk_size) ; 345 sf_count_t chunk_size ; in caf_read_header() local 361 psf_binheader_readf (psf, "mE8b", &marker, &chunk_size, ubuf.ucbuf, 8) ; in caf_read_header() 364 psf_log_printf (psf, "%M : %D\n Sample rate : %s\n", marker, chunk_size, ubuf.cbuf) ; in caf_read_header() 368 if (chunk_size < SIGNED_SIZEOF (DESC_CHUNK)) in caf_read_header() 386 if (chunk_size > SIGNED_SIZEOF (DESC_CHUNK)) in caf_read_header() 387 psf_binheader_readf (psf, "j", (int) (chunk_size - sizeof (DESC_CHUNK))) ; in caf_read_header() 393 chunk_size = 0 ; in caf_read_header() 395 psf_binheader_readf (psf, "mE8", &marker, &chunk_size) ; in caf_read_header() [all …]
|
D | w64.c | 228 sf_count_t chunk_size, bytesread = 0 ; in w64_read_header() local 244 marker = chunk_size = 0 ; in w64_read_header() 245 bytesread = psf_binheader_readf (psf, "eh8", &marker, &chunk_size) ; in w64_read_header() 253 if (psf->filelength != chunk_size) in w64_read_header() 254 psf_log_printf (psf, "riff : %D (should be %D)\n", chunk_size, psf->filelength) ; in w64_read_header() 256 psf_log_printf (psf, "riff : %D\n", chunk_size) ; in w64_read_header() 267 chunk_size = 0 ; in w64_read_header() 278 psf_log_printf (psf, " fmt : %D\n", chunk_size) ; in w64_read_header() 281 chunk_size -= 24 ; in w64_read_header() 283 if ((error = wavlike_read_fmt_chunk (psf, (int) chunk_size))) in w64_read_header() [all …]
|
D | rf64.c | 183 uint32_t marks [2], marker, chunk_size, parsestage = 0 ; in rf64_read_header() local 202 marker = chunk_size = 0 ; in rf64_read_header() 203 psf_binheader_readf (psf, "em4", &marker, &chunk_size) ; in rf64_read_header() 211 psf_store_read_chunk_u32 (&psf->rchunks, marker, psf_ftell (psf), chunk_size) ; in rf64_read_header() 230 if (chunk_size == bytesread) in rf64_read_header() 231 psf_log_printf (psf, "%M : %u\n", marker, chunk_size) ; in rf64_read_header() 232 else if (chunk_size >= bytesread + 4) in rf64_read_header() 236 { psf_log_printf (psf, "%M : %u (should be %u)\n", marker, chunk_size, bytesread) ; in rf64_read_header() 240 { psf_log_printf (psf, "%M : %u\n", marker, chunk_size) ; in rf64_read_header() 241 psf_binheader_readf (psf, "j", chunk_size - bytesread - 4) ; in rf64_read_header() [all …]
|
/third_party/boost/libs/iostreams/test/ |
D | putback_test.hpp | 17 using boost::iostreams::test::chunk_size; 23 char buf[chunk_size]; in putback_test_one() 24 is.read(buf, chunk_size); in putback_test_one() 25 if (is.gcount() < static_cast<std::streamsize>(chunk_size)) in putback_test_one() 39 char buf[chunk_size]; in putback_test_two() 40 is.read(buf, chunk_size); in putback_test_two() 41 if (is.gcount() < static_cast<std::streamsize>(chunk_size)) in putback_test_two() 62 char buf[chunk_size]; in putback_test_three() 63 if (boost::iostreams::read(src, buf, chunk_size) < chunk_size) in putback_test_three() 78 char buf[chunk_size]; in putback_test_four() [all …]
|
/third_party/boost/boost/multiprecision/cpp_int/ |
D | import_export.hpp | 89 …llocator>, ExpressionTemplates>& val, Iterator i, Iterator j, unsigned chunk_size = 0, bool msv_fi… in import_bits_generic() argument 99 if (!chunk_size) in import_bits_generic() 100 chunk_size = std::numeric_limits<value_type>::digits; in import_bits_generic() 103 size_type bits = limbs * chunk_size; in import_bits_generic() 107 difference_type bit_location = msv_first ? bits - chunk_size : 0; in import_bits_generic() 108 …ence_type bit_location_change = msv_first ? -static_cast<difference_type>(chunk_size) : chunk_size; in import_bits_generic() 112 …static_cast<unsigned_value_type>(*i), static_cast<unsigned>(bit_location), chunk_size, tag_type()); in import_bits_generic() 126 …its, SignType, Checked, Allocator>, ExpressionTemplates>& val, T* i, T* j, unsigned chunk_size = 0) in import_bits_fast() argument 128 std::size_t byte_len = (j - i) * (chunk_size ? chunk_size / CHAR_BIT : sizeof(*i)); in import_bits_fast() 142 …its, SignType, Checked, Allocator>, ExpressionTemplates>& val, T* i, T* j, unsigned chunk_size = 0) in import_bits_fast() argument [all …]
|
/third_party/ffmpeg/libavformat/ |
D | dtshddec.c | 57 uint64_t chunk_type, chunk_size; in dtshd_read_header() local 72 chunk_size = avio_rb64(pb); in dtshd_read_header() 77 if (chunk_size < 4) { in dtshd_read_header() 81 if (chunk_size > ((uint64_t)1 << 61)) { in dtshd_read_header() 89 dtshd->data_end = data_start + chunk_size; in dtshd_read_header() 90 if (dtshd->data_end <= chunk_size) in dtshd_read_header() 97 if (chunk_size < 21) in dtshd_read_header() 109 avio_skip(pb, chunk_size - 21); in dtshd_read_header() 112 if (chunk_size > INT_MAX) in dtshd_read_header() 114 value = av_malloc(chunk_size); in dtshd_read_header() [all …]
|
D | hnm.c | 107 uint32_t superchunk_size, chunk_size; in hnm_read_packet() local 121 chunk_size = avio_rl24(pb); in hnm_read_packet() 126 if (chunk_size > hnm->superchunk_remaining || !chunk_size) { in hnm_read_packet() 129 chunk_size, avio_tell(pb)); in hnm_read_packet() 139 ret += av_get_packet(pb, pkt, chunk_size); in hnm_read_packet() 140 hnm->superchunk_remaining -= chunk_size; in hnm_read_packet() 146 avio_skip(pb, chunk_size - 8); in hnm_read_packet() 147 hnm->superchunk_remaining -= chunk_size; in hnm_read_packet() 153 avio_skip(pb, chunk_size - 8); in hnm_read_packet() 154 hnm->superchunk_remaining -= chunk_size; in hnm_read_packet()
|
D | riffdec.c | 239 int64_t chunk_size; in ff_read_riff_info() local 244 chunk_size = avio_rl32(pb); in ff_read_riff_info() 246 if (chunk_code || chunk_size) { in ff_read_riff_info() 252 if (chunk_size > end || in ff_read_riff_info() 253 end - chunk_size < cur || in ff_read_riff_info() 254 chunk_size == UINT_MAX) { in ff_read_riff_info() 257 chunk_size = avio_rl32(pb); in ff_read_riff_info() 258 if (chunk_size > end || end - chunk_size < cur || chunk_size == UINT_MAX) { in ff_read_riff_info() 264 chunk_size += (chunk_size & 1); in ff_read_riff_info() 267 if (chunk_size) in ff_read_riff_info() [all …]
|
D | idroqdec.c | 100 unsigned int chunk_size; in roq_read_packet() local 118 chunk_size = AV_RL32(&preamble[2]); in roq_read_packet() 119 if(chunk_size > INT_MAX) in roq_read_packet() 122 chunk_size = ffio_limit(pb, chunk_size); in roq_read_packet() 152 codebook_size = chunk_size; in roq_read_packet() 157 chunk_size = AV_RL32(&preamble[2]) + RoQ_CHUNK_PREAMBLE_SIZE * 2 + in roq_read_packet() 160 if (chunk_size > INT_MAX) in roq_read_packet() 167 ret= av_get_packet(pb, pkt, chunk_size); in roq_read_packet() 168 if (ret != chunk_size) in roq_read_packet() 208 ret = av_new_packet(pkt, chunk_size + RoQ_CHUNK_PREAMBLE_SIZE); in roq_read_packet() [all …]
|
D | westwood_aud.c | 134 unsigned int chunk_size; in wsaud_read_packet() local 146 chunk_size = AV_RL16(&preamble[0]); in wsaud_read_packet() 154 if ((ret = av_new_packet(pkt, chunk_size + 4)) < 0) in wsaud_read_packet() 156 if ((ret = avio_read(pb, &pkt->data[4], chunk_size)) != chunk_size) in wsaud_read_packet() 159 AV_WL16(&pkt->data[2], chunk_size); in wsaud_read_packet() 163 ret = av_get_packet(pb, pkt, chunk_size); in wsaud_read_packet() 164 if (ret != chunk_size) in wsaud_read_packet() 174 pkt->duration = (chunk_size * 2) / st->codecpar->channels; in wsaud_read_packet()
|
D | electronicarts.c | 580 unsigned int chunk_type, chunk_size; in ea_read_packet() local 588 chunk_size = ea->big_endian ? avio_rb32(pb) : avio_rl32(pb); in ea_read_packet() 589 if (chunk_size < 8) in ea_read_packet() 591 chunk_size -= 8; in ea_read_packet() 597 if (chunk_size < 32) in ea_read_packet() 600 chunk_size -= 32; in ea_read_packet() 606 avio_skip(pb, chunk_size); in ea_read_packet() 610 if (chunk_size < 12) in ea_read_packet() 614 chunk_size -= 12; in ea_read_packet() 616 if (chunk_size < 8) in ea_read_packet() [all …]
|
D | mgsts.c | 41 uint32_t chunk_size; in read_header() local 44 chunk_size = avio_rb32(pb); in read_header() 45 if (chunk_size != 80) in read_header() 74 uint32_t chunk_size, payload_size; in read_packet() local 81 chunk_size = avio_rb32(pb); in read_packet() 85 if (chunk_size < payload_size + 16) in read_packet() 94 avio_skip(pb, chunk_size - (ret + 16)); in read_packet()
|
/third_party/pcre2/pcre2/src/sljit/ |
D | sljitExecAllocator.c | 266 sljit_uw chunk_size; in sljit_malloc_exec() local 276 chunk_size = free_block->size; in sljit_malloc_exec() 278 if (chunk_size > size + 64) { in sljit_malloc_exec() 280 chunk_size -= size; in sljit_malloc_exec() 281 free_block->size = chunk_size; in sljit_malloc_exec() 282 header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec() 283 header->prev_size = chunk_size; in sljit_malloc_exec() 289 size = chunk_size; in sljit_malloc_exec() 299 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec() 300 header = (struct block_header*)alloc_chunk(chunk_size); in sljit_malloc_exec() [all …]
|
D | sljitProtExecAllocator.c | 321 sljit_uw chunk_size; in sljit_malloc_exec() local 332 chunk_size = free_block->size; in sljit_malloc_exec() 333 if (chunk_size > size + 64) { in sljit_malloc_exec() 335 chunk_size -= size; in sljit_malloc_exec() 336 free_block->size = chunk_size; in sljit_malloc_exec() 337 header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec() 338 header->prev_size = chunk_size; in sljit_malloc_exec() 345 size = chunk_size; in sljit_malloc_exec() 355 chunk_size = sizeof(struct chunk_header) + sizeof(struct block_header); in sljit_malloc_exec() 356 chunk_size = (chunk_size + size + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | vqavideo.c | 324 unsigned int chunk_size; in vqa_decode_chunk() local 354 chunk_size = bytestream2_get_be32u(&s->gb); in vqa_decode_chunk() 392 byte_skip = chunk_size & 0x01; in vqa_decode_chunk() 393 bytestream2_skip(&s->gb, chunk_size + byte_skip); in vqa_decode_chunk() 415 chunk_size = bytestream2_get_be32(&s->gb); in vqa_decode_chunk() 417 if (chunk_size / 3 > 256 || chunk_size > bytestream2_get_bytes_left(&s->gb)) { in vqa_decode_chunk() 419 chunk_size / 3); in vqa_decode_chunk() 422 for (i = 0; i < chunk_size / 3; i++) { in vqa_decode_chunk() 444 chunk_size = bytestream2_get_be32(&s->gb); in vqa_decode_chunk() 445 if ((res = decode_format80(s, chunk_size, s->codebook, in vqa_decode_chunk() [all …]
|
D | flicvideo.c | 165 unsigned int chunk_size; in flic_decode_frame_8BPP() local 211 chunk_size = bytestream2_get_le32(&g2); in flic_decode_frame_8BPP() 212 if (chunk_size > frame_size) { in flic_decode_frame_8BPP() 214 "Invalid chunk_size = %u > frame_size = %u\n", chunk_size, frame_size); in flic_decode_frame_8BPP() 215 chunk_size = frame_size; in flic_decode_frame_8BPP() 217 stream_ptr_after_chunk = bytestream2_tell(&g2) - 4 + chunk_size; in flic_decode_frame_8BPP() 432 if (chunk_size - 6 != FFALIGN(s->avctx->width, 4) * s->avctx->height) { in flic_decode_frame_8BPP() 434 "has incorrect size, skipping chunk\n", chunk_size - 6); in flic_decode_frame_8BPP() 435 bytestream2_skip(&g2, chunk_size - 6); in flic_decode_frame_8BPP() 463 frame_size -= chunk_size; in flic_decode_frame_8BPP() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | cord_rep_btree_reader.cc | 29 absl::string_view CordRepBtreeReader::Read(size_t n, size_t chunk_size, in Read() argument 31 assert(chunk_size <= navigator_.Current()->length); in Read() 35 CordRep* edge = chunk_size ? navigator_.Current() : navigator_.Next(); in Read() 36 const size_t offset = chunk_size ? edge->length - chunk_size : 0; in Read() 47 if (n < chunk_size) return CordRepBtree::EdgeData(edge).substr(result.n); in Read() 54 const size_t consumed_by_read = n - chunk_size - result.n; in Read()
|
/third_party/spirv-tools/source/fuzz/ |
D | shrinker.cpp | 45 uint32_t chunk_index, uint32_t chunk_size) { in RemoveChunk() argument 46 uint32_t lower = chunk_index * chunk_size; in RemoveChunk() 47 uint32_t upper = std::min((chunk_index + 1) * chunk_size, in RemoveChunk() 141 uint32_t chunk_size = in Run() local 153 chunk_size > 0) { in Run() 161 assert(chunk_size <= in Run() 170 chunk_size - 1) / in Run() 171 chunk_size; in Run() 173 assert(num_chunks * chunk_size >= in Run() 186 static_cast<uint32_t>(chunk_index), chunk_size); in Run() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | shrinker.cpp | 45 uint32_t chunk_index, uint32_t chunk_size) { in RemoveChunk() argument 46 uint32_t lower = chunk_index * chunk_size; in RemoveChunk() 47 uint32_t upper = std::min((chunk_index + 1) * chunk_size, in RemoveChunk() 141 uint32_t chunk_size = in Run() local 153 chunk_size > 0) { in Run() 161 assert(chunk_size <= in Run() 170 chunk_size - 1) / in Run() 171 chunk_size; in Run() 173 assert(num_chunks * chunk_size >= in Run() 186 static_cast<uint32_t>(chunk_index), chunk_size); in Run() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | shrinker.cpp | 45 uint32_t chunk_index, uint32_t chunk_size) { in RemoveChunk() argument 46 uint32_t lower = chunk_index * chunk_size; in RemoveChunk() 47 uint32_t upper = std::min((chunk_index + 1) * chunk_size, in RemoveChunk() 141 uint32_t chunk_size = in Run() local 153 chunk_size > 0) { in Run() 161 assert(chunk_size <= in Run() 170 chunk_size - 1) / in Run() 171 chunk_size; in Run() 173 assert(num_chunks * chunk_size >= in Run() 186 static_cast<uint32_t>(chunk_index), chunk_size); in Run() [all …]
|
/third_party/glib/gio/tests/ |
D | memory-input-stream.c | 35 gsize bytes_read, pos, len, chunk_size; in test_read_chunks() local 48 for (chunk_size = 1; chunk_size < len - 1; chunk_size++) in test_read_chunks() 53 bytes_read = g_input_stream_read (stream, buffer, chunk_size, NULL, &error); in test_read_chunks() 55 g_assert_cmpint (bytes_read, ==, MIN (chunk_size, len - pos)); in test_read_chunks() 110 gsize pos, len, chunk_size; in test_async() local 125 for (chunk_size = 1; chunk_size < len - 1; chunk_size++) in test_async() 130 g_input_stream_read_async (stream, buffer, chunk_size, in test_async() 135 g_assert_cmpint (bytes_read, ==, MIN (chunk_size, len - pos)); in test_async() 147 while (pos + chunk_size + 1 < len) in test_async() 149 g_input_stream_skip_async (stream, chunk_size, in test_async() [all …]
|
/third_party/glib/gio/ |
D | thumbnail-verify.c | 139 guint32 chunk_size; in check_thumbnail_validity() local 145 chunk_size = GUINT32_FROM_BE (chunk_size_be); in check_thumbnail_validity() 156 if (G_MAXUINT32 - chunk_size < 8 || size < chunk_size + 8) in check_thumbnail_validity() 173 for (key_size = 0; key_size < chunk_size; key_size++) in check_thumbnail_validity() 183 value_size = chunk_size - key_size - 1; in check_thumbnail_validity() 214 contents += chunk_size, size -= chunk_size; /* data */ in check_thumbnail_validity()
|