Validates Index by using a hash function. More...
#include "common.h"
#include "index.h"
#include "check.h"
Data Structures | |
struct | lzma_index_hash_info |
struct | lzma_index_hash_s |
Functions | |
LZMA_API (lzma_index_hash *) | |
LZMA_API (void) | |
Free memory allocated for the coder data structures. | |
LZMA_API (lzma_vli) | |
Calculate rough memory usage of easy encoder. | |
static lzma_ret | hash_append (lzma_index_hash_info *info, lzma_vli unpadded_size, lzma_vli uncompressed_size) |
Updates the sizes and the hash without any validation. | |
LZMA_API (lzma_ret) |
Validates Index by using a hash function.
LZMA_API | ( | void | ) |
Free memory allocated for the coder data structures.
Rewind the Index.
strm | Pointer to lzma_stream that is at least initialized with LZMA_STREAM_INIT. |
After lzma_end(strm), strm->internal is guaranteed to be NULL. No other members of the lzma_stream structure are touched.
Rewind the Index so that next call to lzma_index_read() will return the first Record.
Free memory allocated for the coder data structures.
Rewind the Index.
If i is NULL, this does nothing.
Rewind the Index so that next call to lzma_index_read() will return the first Record.
LZMA_API | ( | uint64_t | ) |
Calculate rough memory usage of easy encoder.
Calculate memory usage for Index with given number of Records.
Calculate rough decoder memory usage of a preset.
This function is a wrapper for lzma_raw_encoder_memusage().
preset | Compression preset (level and possible flags) |
This function is a wrapper for lzma_raw_decoder_memusage().
preset | Compression preset (level and possible flags) |
static lzma_ret hash_append | ( | lzma_index_hash_info * | info, | |
lzma_vli | unpadded_size, | |||
lzma_vli | uncompressed_size | |||
) | [static] |
Updates the sizes and the hash without any validation.
References lzma_index_hash_info::blocks_size, lzma_index_hash_info::check, lzma_index_hash_info::count, lzma_index_hash_info::index_list_size, lzma_check_update(), LZMA_OK, and lzma_index_hash_info::uncompressed_size.