Lines Matching refs:allocator

39 lzma_alloc(size_t size, const lzma_allocator *allocator)  in lzma_alloc()  argument
47 if (allocator != NULL && allocator->alloc != NULL) in lzma_alloc()
48 ptr = allocator->alloc(allocator->opaque, 1, size); in lzma_alloc()
58 lzma_alloc_zero(size_t size, const lzma_allocator *allocator) in lzma_alloc_zero() argument
66 if (allocator != NULL && allocator->alloc != NULL) { in lzma_alloc_zero()
67 ptr = allocator->alloc(allocator->opaque, 1, size); in lzma_alloc_zero()
79 lzma_free(void *ptr, const lzma_allocator *allocator) in lzma_free() argument
81 if (allocator != NULL && allocator->free != NULL) in lzma_free()
82 allocator->free(allocator->opaque, ptr); in lzma_free()
123 lzma_next_filter_init(lzma_next_coder *next, const lzma_allocator *allocator, in lzma_next_filter_init() argument
126 lzma_next_coder_init(filters[0].init, next, allocator); in lzma_next_filter_init()
129 ? LZMA_OK : filters[0].init(next, allocator, filters); in lzma_next_filter_init()
134 lzma_next_filter_update(lzma_next_coder *next, const lzma_allocator *allocator, in lzma_next_filter_update() argument
147 return next->update(next->coder, allocator, NULL, reversed_filters); in lzma_next_filter_update()
152 lzma_next_end(lzma_next_coder *next, const lzma_allocator *allocator) in lzma_next_end() argument
159 next->end(next->coder, allocator); in lzma_next_end()
161 lzma_free(next->coder, allocator); in lzma_next_end()
184 strm->allocator); in lzma_strm_init()
294 strm->internal->next.coder, strm->allocator, in lzma_code()
383 lzma_next_end(&strm->internal->next, strm->allocator); in lzma_end()
384 lzma_free(strm->internal, strm->allocator); in lzma_end()