Lines Matching +full:1 +full:gib

62 	return str->pos == STR_ALLOC_SIZE - 1;  in str_is_full()
89 const size_t limit = STR_ALLOC_SIZE - 1 - str->pos; in str_append_str()
107 static const char suffixes[4][4] = { "", "KiB", "MiB", "GiB" }; in str_append_u32()
112 && suf < ARRAY_SIZE(suffixes) - 1) { in str_append_u32()
118 // UINT32_MAX in base 10 would need 10 + 1 bytes. Remember in str_append_u32()
122 size_t pos = sizeof(buf) - 1; in str_append_u32()
151 /// For option_map.flags: Allow KiB/MiB/GiB in input string and use them in
176 const char name[NAME_LEN_MAX + 1];
188 /// (1) If .type equals OPTMAP_TYPE_LZMA_PRESET then LZMA1/2 preset string
197 /// OPTMAP_USE_BYTE_SUFFIX then KiB, MiB, and GiB suffixes are allowed.
216 /// MiB, or GiB suffix is used if the value is an exact multiple of these.
219 char name[NAME_LEN_MAX + 1];
391 // would allow 4 GiB - 1 B.
392 .u.range.max = (UINT32_C(1) << 30) + (UINT32_C(1) << 29),
462 char name[NAME_LEN_MAX + 1];
506 &parse_bcj, bcj_optmap, 1, 1, true },
511 &parse_bcj, bcj_optmap, 1, 1, true },
516 &parse_bcj, bcj_optmap, 1, 1, true },
521 &parse_bcj, bcj_optmap, 1, 1, true },
526 &parse_bcj, bcj_optmap, 1, 1, true },
531 &parse_bcj, bcj_optmap, 1, 1, true },
536 &parse_bcj, bcj_optmap, 1, 1, true },
541 &parse_bcj, bcj_optmap, 1, 1, true },
546 &parse_delta, delta_optmap, 1, 1, false },
611 *str = equals_sign + 1; in parse_options()
732 // suffixes "KiB", "MiB", or "GiB" in parse_options()
736 "(KiB, MiB, or GiB)"); in parse_options()
756 "(KiB, MiB, or GiB)"); in parse_options()
819 opts_start = p + 1; in parse_filter()
896 if (MY_IS_DIGIT(**str) || (**str == '-' && MY_IS_DIGIT((*str)[1]))) { in str_to_filters()
906 for (size_t i = 1; str_end[i] != '\0'; ++i) in str_to_filters()
930 filters[1].id = LZMA_VLI_UNKNOWN; in str_to_filters()
931 filters[1].options = NULL; in str_to_filters()
944 lzma_filter temp_filters[LZMA_FILTERS_MAX + 1]; in str_to_filters()
954 if ((*str)[0] == '-' && (*str)[1] == '-') in str_to_filters()
961 if ((filter_end[0] == '-' && filter_end[1] == '-') in str_to_filters()
1005 memcpy(filters, temp_filters, (i + 1) * sizeof(lzma_filter)); in str_to_filters()
1022 // liblzma <= 5.4.6 and <= 5.6.1 have a bug and don't do this in lzma_str_to_filters()