Lines Matching refs:allocator
40 str_init(lzma_str *str, const lzma_allocator *allocator) in str_init() argument
42 str->buf = lzma_alloc(STR_ALLOC_SIZE, allocator); in str_init()
52 str_free(lzma_str *str, const lzma_allocator *allocator) in str_free() argument
54 lzma_free(str->buf, allocator); in str_free()
67 str_finish(char **dest, lzma_str *str, const lzma_allocator *allocator) in str_finish() argument
73 lzma_free(str->buf, allocator); in str_finish()
803 const lzma_allocator *allocator, bool only_xz) in parse_filter() argument
843 allocator); in parse_filter()
854 lzma_free(options, allocator); in parse_filter()
875 const lzma_allocator *allocator) in str_to_filters() argument
919 lzma_options_lzma *opts = lzma_alloc(sizeof(*opts), allocator); in str_to_filters()
924 lzma_free(opts, allocator); in str_to_filters()
976 allocator, only_xz); in str_to_filters()
1011 lzma_free(temp_filters[i].options, allocator); in str_to_filters()
1019 uint32_t flags, const lzma_allocator *allocator) in lzma_str_to_filters() argument
1049 const char *errmsg = str_to_filters(&used, filters, flags, allocator); in lzma_str_to_filters()
1138 uint32_t flags, const lzma_allocator *allocator) in lzma_str_from_filters() argument
1166 return_if_error(str_init(&dest, allocator)); in lzma_str_from_filters()
1176 str_free(&dest, allocator); in lzma_str_from_filters()
1195 str_free(&dest, allocator); in lzma_str_from_filters()
1216 str_free(&dest, allocator); in lzma_str_from_filters()
1243 return str_finish(output_str, &dest, allocator); in lzma_str_from_filters()
1249 const lzma_allocator *allocator) in lzma_str_list_filters() argument
1270 return_if_error(str_init(&dest, allocator)); in lzma_str_list_filters()
1358 str_free(&dest, allocator); in lzma_str_list_filters()
1362 return str_finish(output_str, &dest, allocator); in lzma_str_list_filters()