Version number. More...
Defines | |
#define | LZMA_VERSION UINT32_C(49990081) |
Compile-time version number. | |
Functions | |
LZMA_API (uint32_t) lzma_version_number(void) lzma_attr_const | |
liblzma version number as an integer | |
LZMA_API (const char *) lzma_version_string(void) lzma_attr_const | |
Version number of liblzma as a string. |
Version number.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
#define LZMA_VERSION UINT32_C(49990081) |
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.
LZMA_API | ( | uint32_t | ) | const |
liblzma version number as an integer
Returns 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.
liblzma version number as an integer
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.
Calculates 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 there is no previous value. |
LZMA_API | ( | const char * | ) | const |
Version number of liblzma as a string.
This function may be useful if you want to display which version of liblzma your application is currently using.