Rizin
unix-like reverse engineering framework and cli tools
|
Version number. More...
Go to the source code of this file.
Macros | |
#define | LZMA_VERSION_MAJOR 5 |
#define | LZMA_VERSION_MINOR 2 |
#define | LZMA_VERSION_PATCH 5 |
#define | LZMA_VERSION_STABILITY LZMA_VERSION_STABILITY_STABLE |
#define | LZMA_VERSION_COMMIT "" |
#define | LZMA_VERSION_STABILITY_ALPHA 0 |
#define | LZMA_VERSION_STABILITY_BETA 1 |
#define | LZMA_VERSION_STABILITY_STABLE 2 |
#define | LZMA_VERSION |
Compile-time version number. More... | |
#define | LZMA_VERSION_STABILITY_STRING "" |
#define | LZMA_VERSION_STRING_C_(major, minor, patch, stability, commit) #major "." #minor "." #patch stability commit |
#define | LZMA_VERSION_STRING_C(major, minor, patch, stability, commit) LZMA_VERSION_STRING_C_(major, minor, patch, stability, commit) |
#define | LZMA_VERSION_STRING |
Compile-time version as a string. More... | |
Functions | |
LZMA_API (uint32_t) lzma_version_number(void) lzma_nothrow lzma_attr_const | |
Run-time version number as an integer. More... | |
LZMA_API (const char *) lzma_version_string(void) lzma_nothrow lzma_attr_const | |
Run-time version as a string. More... | |
Version number.
Definition in file version.h.
#define LZMA_VERSION |
Compile-time version number.
The version number is of format xyyyzzzs where
The same xyyyzzz triplet is never reused with different stability levels. For example, if 5.1.0alpha has been released, there will never be 5.1.0beta or 5.1.0 stable.
#define LZMA_VERSION_STABILITY LZMA_VERSION_STABILITY_STABLE |
#define LZMA_VERSION_STRING |
Compile-time version as a string.
This can be for example "4.999.5alpha", "4.999.8beta", or "5.0.0" (stable versions don't have any "stable" suffix). In future, a snapshot built from source code repository may include an additional suffix, for example "4.999.8beta-21-g1d92". The commit ID won't be available in numeric form in LZMA_VERSION macro.
#define LZMA_VERSION_STRING_C | ( | major, | |
minor, | |||
patch, | |||
stability, | |||
commit | |||
) | LZMA_VERSION_STRING_C_(major, minor, patch, stability, commit) |
LZMA_API | ( | const char * | ) | const |
Run-time version as a string.
This function may be useful if you want to display which version of liblzma your application is currently using.
Definition at line 27 of file common.c.
References LZMA_VERSION_STRING.
LZMA_API | ( | uint32_t | ) | const |
Run-time version number as an integer.
Return the value of LZMA_VERSION macro at the compile time of liblzma. This allows the application to compare if it was built against the same, older, or newer version of liblzma that is currently running.
Run-time version number as an integer.
Get the number of processor cores or threads.
Calculate CRC32.
Although not all Check IDs have a check algorithm associated, the size of every Check is already frozen. This function returns the size (in bytes) of the Check field with the specified Check ID. The values are: { 0, 4, 4, 4, 8, 8, 8, 16, 16, 16, 32, 32, 32, 64, 64, 64 }
If the argument is not in the range [0, 15], UINT32_MAX is returned.
Calculate CRC32 using the polynomial from the IEEE 802.3 standard.
buf | Pointer to the input buffer |
size | Size of the input buffer |
crc | Previously returned CRC value. This is used to calculate the CRC of a big buffer in smaller chunks. Set to zero when starting a new calculation. |