#include "common.h"
Functions | |
LZMA_API (lzma_bool) | |
Test if the given Check ID is supported. |
LZMA_API | ( | lzma_bool | ) |
Test if the given Check ID is supported.
Test if given match finder is supported.
Test if the given Filter ID is supported for encoding.
Set a compression preset to lzma_options_lzma structure.
Test if given compression mode is supported.
Compare if two Index lists are identical.
Locate a Record.
Test if the given Filter ID is supported for decoding.
Returns true if the given Check ID is supported by this liblzma build. Otherwise false is returned. It is safe to call this with a value that is not in the range [0, 15]; in that case the return value is always false.
You can assume that LZMA_CHECK_NONE and LZMA_CHECK_CRC32 are always supported (even if liblzma is built with limited features).
Returns true if the give Filter ID is supported for decoding by this liblzma build. Otherwise false is returned.
When the Index is available, it is possible to do random-access reading with granularity of Block size.
i | Pointer to lzma_index structure | |
record | Pointer to a structure to hold the search results | |
target | Uncompressed target offset which the caller would like to locate from the Stream |
If target is greater than the uncompressed size of the Stream, *record and the read position are not modified, and this function returns true.
There is no way to list which modes are available in this particular liblzma version and build. It would be useless, because a new compression mode, which the application developer wasn't aware, could require giving additional options to the encoder that the older modes don't need.
0 is the fastest and 9 is the slowest. These match the switches -0 .. -9 of the xz command line tool. In addition, it is possible to bitwise-or flags to the preset. Currently only LZMA_PRESET_EXTREME is supported. The flags are defined in container.h, because the flags are used also with lzma_easy_encoder().
The preset values are subject to changes between liblzma versions.
This function is available only if LZMA1 or LZMA2 encoder has been enabled when building liblzma.
Test if the given Check ID is supported.
Compare if two Index lists are identical.
Locate a Record.
When the Index is available, it is possible to do random-access reading with granularity of Block size.
i | Pointer to lzma_index structure | |
record | Pointer to a structure to hold the search results | |
target | Uncompressed target offset which the caller would like to locate from the Stream |
If target is greater than the uncompressed size of the Stream, *record and the read position are not modified, and this function returns true.
References init_current(), LZMA_PRESET_EXTREME, LZMA_PRESET_LEVEL_MASK, next_group(), previous_group(), and set_info().