Lines Matching refs:size_t

67 #define SIZE_T_MAX CAST(size_t, ~0ULL)
157 cdf_getuint32(const uint8_t *p, size_t offs) in cdf_getuint32()
190 size_t i; in cdf_swap_header()
221 size_t i; in cdf_unpack_header()
222 size_t len = 0; in cdf_unpack_header()
272 size_t len = 0; in cdf_unpack_dir()
301 static size_t
305 size_t ss = sst->sst_dirlen < h->h_min_size_standard_stream ? in cdf_check_stream()
314 const void *p, size_t tail, int line) in cdf_check_stream_offset()
318 size_t ss = cdf_check_stream(sst, h); in cdf_check_stream_offset()
320 if (e >= b && CAST(size_t, e - b) <= ss * sst->sst_len) in cdf_check_stream_offset()
324 SIZE_T_FORMAT "u]\n", line, b, e, (size_t)(e - b), in cdf_check_stream_offset()
331 cdf_read(const cdf_info_t *info, zend_off_t off, void *buf, size_t len) in cdf_read()
333 size_t siz = CAST(size_t, off + len); in cdf_read()
392 cdf_read_sector(const cdf_info_t *info, void *buf, size_t offs, size_t len, in cdf_read_sector()
395 size_t ss = CDF_SEC_SIZE(h); in cdf_read_sector()
396 size_t pos; in cdf_read_sector()
398 if (SIZE_T_MAX / ss < CAST(size_t, id)) in cdf_read_sector()
407 cdf_read_short_sector(const cdf_stream_t *sst, void *buf, size_t offs, in cdf_read_short_sector()
408 size_t len, const cdf_header_t *h, cdf_secid_t id) in cdf_read_short_sector()
410 size_t ss = CDF_SHORT_SEC_SIZE(h); in cdf_read_short_sector()
411 size_t pos; in cdf_read_short_sector()
413 if (SIZE_T_MAX / ss < CAST(size_t, id)) in cdf_read_short_sector()
438 size_t i, j, k; in cdf_read_sat()
439 size_t ss = CDF_SEC_SIZE(h); in cdf_read_sat()
441 size_t nsatpersec = (ss / sizeof(mid)) - 1; in cdf_read_sat()
522 size_t
523 cdf_count_chain(const cdf_sat_t *sat, cdf_secid_t sid, size_t size) in cdf_count_chain()
525 size_t i, j; in cdf_count_chain()
557 return CAST(size_t, -1); in cdf_count_chain()
562 const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_long_sector_chain()
564 size_t ss = CDF_SEC_SIZE(h), i, j; in cdf_read_long_sector_chain()
574 if (scn->sst_len == CAST(size_t, -1)) in cdf_read_long_sector_chain()
612 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_short_sector_chain()
614 size_t ss = CDF_SHORT_SEC_SIZE(h), i, j; in cdf_read_short_sector_chain()
620 if (scn->sst_len == CAST(size_t, -1)) in cdf_read_short_sector_chain()
654 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_sector_chain()
668 size_t i, j; in cdf_read_dir()
669 size_t ss = CDF_SEC_SIZE(h), ns, nd; in cdf_read_dir()
674 if (ns == CAST(size_t, -1)) in cdf_read_dir()
723 size_t i, j; in cdf_read_ssat()
724 size_t ss = CDF_SEC_SIZE(h); in cdf_read_ssat()
729 if (ssat->sat_len == CAST(size_t, -1)) in cdf_read_ssat()
767 size_t i; in cdf_read_short_stream()
798 cdf_namecmp(const char *d, const uint16_t *s, size_t l) in cdf_namecmp()
845 size_t i, name_len = strlen(name) + 1; in cdf_find_stream()
864 cdf_offset(const void *p, size_t l) in cdf_offset()
871 const uint8_t *p, const uint8_t *e, size_t i) in cdf_get_property_info_pos()
873 size_t tail = (i << 1) + 1; in cdf_get_property_info_pos()
874 size_t ofs; in cdf_get_property_info_pos()
901 cdf_grow_info(cdf_property_info_t **info, size_t *maxcount, size_t incr) in cdf_grow_info()
904 size_t newcount = *maxcount + incr; in cdf_grow_info()
928 size_t len) in cdf_copy_info()
933 if (CAST(size_t, CAST(const char *, e) - CAST(const char *, p)) < len) in cdf_copy_info()
956 uint32_t offs, cdf_property_info_t **info, size_t *count, size_t *maxcount) in cdf_read_property_info()
961 size_t i, o4, nelements, j, slen, left; in cdf_read_property_info()
1000 left = CAST(size_t, e - q); in cdf_read_property_info()
1052 size_t nelem = inp - *info; in cdf_read_property_info()
1112 cdf_summary_info_header_t *ssi, cdf_property_info_t **info, size_t *count) in cdf_unpack_summary_info()
1114 size_t maxcount; in cdf_unpack_summary_info()
1153 size_t ss = cdf_check_stream(sst, h); in cdf_unpack_catalog()
1156 size_t nr, i, j, k; in cdf_unpack_catalog()
1218 cdf_print_classid(char *buf, size_t buflen, const cdf_classid_t *id) in cdf_print_classid()
1254 cdf_print_property_name(char *buf, size_t bufsiz, uint32_t p) in cdf_print_property_name()
1256 size_t i; in cdf_print_property_name()
1265 cdf_print_elapsed_time(char *buf, size_t bufsiz, cdf_timestamp_t ts) in cdf_print_elapsed_time()
1281 if (CAST(size_t, len) >= bufsiz) in cdf_print_elapsed_time()
1287 if (CAST(size_t, len) >= bufsiz) in cdf_print_elapsed_time()
1292 if (CAST(size_t, len) >= bufsiz) in cdf_print_elapsed_time()
1300 cdf_u16tos8(char *buf, size_t len, const uint16_t *p) in cdf_u16tos8()
1302 size_t i; in cdf_u16tos8()
1313 size_t i; in cdf_dump_header()
1339 cdf_dump_sat(const char *prefix, const cdf_sat_t *sat, size_t size) in cdf_dump_sat()
1341 size_t i, j, s = size / sizeof(cdf_secid_t); in cdf_dump_sat()
1358 cdf_dump(const void *v, size_t len) in cdf_dump()
1360 size_t i, j; in cdf_dump()
1381 size_t ss = sst->sst_ss; in cdf_dump_stream()
1390 size_t i, j; in cdf_dump_dir()
1446 cdf_dump_property_info(const cdf_property_info_t *info, size_t count) in cdf_dump_property_info()
1451 size_t i, j; in cdf_dump_property_info()
1521 size_t count; in cdf_dump_summary_info()
1546 size_t i; in cdf_dump_catalog()