Spaces:
Build error
Build error
/* SPDX-License-Identifier: 0BSD */ | |
/* | |
* Definitions for handling the .xz file format | |
* | |
* Author: Lasse Collin <lasse.collin@tukaani.org> | |
*/ | |
(~crc32_le(~(uint32_t)(crc), buf, size)) | |
/* | |
* See the .xz file format specification at | |
* https://tukaani.org/xz/xz-file-format.txt | |
* to understand the container format. | |
*/ | |
/* | |
* Variable-length integer can hold a 63-bit unsigned integer or a special | |
* value indicating that the value is unknown. | |
* | |
* Experimental: vli_type can be defined to uint32_t to save a few bytes | |
* in code size (no effect on speed). Doing so limits the uncompressed and | |
* compressed size of the file to less than 256 MiB and may also weaken | |
* error detection slightly. | |
*/ | |
typedef uint64_t vli_type; | |
/* Maximum encoded size of a VLI */ | |
/* Integrity Check types */ | |
enum xz_check { | |
XZ_CHECK_NONE = 0, | |
XZ_CHECK_CRC32 = 1, | |
XZ_CHECK_CRC64 = 4, | |
XZ_CHECK_SHA256 = 10 | |
}; | |
/* Maximum possible Check ID */ | |