21 lzma_version_number(
void)
28 lzma_version_string(
void)
99 const size_t out_avail = out_size - *
out_pos;
100 const size_t copy_size =
my_min(in_avail, out_avail);
133 if (reversed_filters[0].
id != next->
id)
247 case ISEQ_SYNC_FLUSH:
256 case ISEQ_FULL_FLUSH:
270 case ISEQ_FULL_BARRIER:
304 switch ((
unsigned int)(ret)) {
329 == ISEQ_FULL_BARRIER)
407 &memusage, &old_memlimit, 0) !=
LZMA_OK)
424 &memusage, &old_memlimit, 0) !=
LZMA_OK)
444 if (new_memlimit == 0)
448 &memusage, &old_memlimit, new_memlimit);
lzma_check
Type of the integrity check (Check ID)
const lzma_allocator const uint8_t size_t uint8_t size_t * out_pos
const lzma_allocator const uint8_t size_t * in_pos
const lzma_allocator const uint8_t size_t in_size
const lzma_allocator * allocator
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
const lzma_filter * filters
RZ_API void Ht_() free(HtName_(Ht) *ht)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * malloc(size_t size)
void * calloc(size_t number, size_t size)
assert(limit<=UINT32_MAX/2)
_W64 unsigned int uintptr_t
Custom functions for memory handling.
void * opaque
Pointer passed to .alloc() and .free()
void *LZMA_API_CALL * alloc(void *opaque, size_t nmemb, size_t size)
Pointer to a custom memory allocation function.
lzma_next_coder next
The actual coder that should do something useful.
bool supported_actions[LZMA_ACTION_MAX+1]
Indicates which lzma_action values are allowed by next.code.
enum lzma_internal_s::@645 sequence
Hold data and function pointers of the next filter in the chain.
void(* get_progress)(void *coder, uint64_t *progress_in, uint64_t *progress_out)
lzma_code_function code
Pointer to function to do the actual coding.
void * coder
Pointer to coder-specific data.
lzma_check(* get_check)(const void *coder)
lzma_ret(* update)(void *coder, const lzma_allocator *allocator, const lzma_filter *filters, const lzma_filter *reversed_filters)
lzma_ret(* memconfig)(void *coder, uint64_t *memusage, uint64_t *old_memlimit, uint64_t new_memlimit)
Passing data to and from liblzma.
const lzma_allocator * allocator
Custom memory allocation functions.
lzma_reserved_enum reserved_enum2
lzma_reserved_enum reserved_enum1
Definitions common to the whole liblzma library.
#define LZMA_NEXT_CODER_INIT
Macro to initialize lzma_next_coder structure.
#define lzma_next_coder_init(func, next, allocator)
#define LZMA_ACTION_MAX
Largest valid lzma_action value as unsigned integer.
void * lzma_alloc(size_t size, const lzma_allocator *allocator) lzma_attribute((__malloc__)) lzma_attr_alloc_size(1)
Allocates memory.
#define lzma_attr_alloc_size(x)
#define LZMA_VLI_UNKNOWN
VLI value to denote that the value is unknown.
lzma_ret
Return values used by several functions in liblzma.
@ LZMA_PROG_ERROR
Programming error.
@ LZMA_MEM_ERROR
Cannot allocate memory.
@ LZMA_STREAM_END
End of stream was reached.
@ LZMA_UNSUPPORTED_CHECK
Cannot calculate the integrity check.
@ LZMA_BUF_ERROR
No progress is possible.
@ LZMA_GET_CHECK
Integrity check type is now available.
@ LZMA_NO_CHECK
Input stream has no integrity check.
@ LZMA_OPTIONS_ERROR
Invalid or unsupported options.
@ LZMA_OK
Operation completed successfully.
lzma_action
The ‘action’ argument for lzma_code()
@ LZMA_SYNC_FLUSH
Make all the input available at output.
@ LZMA_FINISH
Finish the coding operation.
@ LZMA_RUN
Continue coding.
@ LZMA_FULL_FLUSH
Finish encoding of the current Block.
@ LZMA_FULL_BARRIER
Finish encoding of the current Block.
#define LZMA_VERSION
Compile-time version number.
#define LZMA_VERSION_STRING
Compile-time version as a string.
lzma_ret lzma_next_filter_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters)
void lzma_free(void *ptr, const lzma_allocator *allocator)
Frees memory.
void * lzma_attribute((__malloc__))
lzma_ret lzma_strm_init(lzma_stream *strm)
size_t lzma_bufcpy(const uint8_t *restrict in, size_t *restrict in_pos, size_t in_size, uint8_t *restrict out, size_t *restrict out_pos, size_t out_size)
lzma_ret lzma_next_filter_update(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter *reversed_filters)
void lzma_next_end(lzma_next_coder *next, const lzma_allocator *allocator)