Lines Matching refs:allocator
39 lzma_alloc(size_t size, lzma_allocator *allocator)
47 if (allocator != NULL && allocator->alloc != NULL)
48 ptr = allocator->alloc(allocator->opaque, 1, size);
57 lzma_free(void *ptr, lzma_allocator *allocator)
59 if (allocator != NULL && allocator->free != NULL)
60 allocator->free(allocator->opaque, ptr);
91 lzma_next_filter_init(lzma_next_coder *next, lzma_allocator *allocator,
94 lzma_next_coder_init(filters[0].init, next, allocator);
97 ? LZMA_OK : filters[0].init(next, allocator, filters);
102 lzma_next_filter_update(lzma_next_coder *next, lzma_allocator *allocator,
115 return next->update(next->coder, allocator, NULL, reversed_filters);
120 lzma_next_end(lzma_next_coder *next, lzma_allocator *allocator)
124 // lzma_free(coder, allocator), we allow leaving next->end
127 next->end(next->coder, allocator);
129 lzma_free(next->coder, allocator);
152 strm->allocator);
254 strm->internal->next.coder, strm->allocator,
317 lzma_next_end(&strm->internal->next, strm->allocator);
318 lzma_free(strm->internal, strm->allocator);