|
LLVM 24.0.0git
|
Functions | |
| LLVM_ABI bool | isAvailable () |
| Return true if LLVM was built with LZMA support (LLVM_ENABLE_LZMA). | |
| LLVM_ABI Error | decompress (ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output) |
| Decompress an xz stream. | |
| Error llvm::compression::xz::decompress | ( | ArrayRef< uint8_t > | Input, |
| SmallVectorImpl< uint8_t > & | Output ) |
Decompress an xz stream.
Unlike zlib and zstd, the uncompressed size does not need to be supplied by the caller: it is recovered from the stream index, and Output is resized to fit. Output is left empty if an error is returned.
Requires isAvailable(); calling this otherwise is a fatal error.
Definition at line 363 of file Compression.cpp.
References llvm_unreachable.
| bool llvm::compression::xz::isAvailable | ( | ) |
Return true if LLVM was built with LZMA support (LLVM_ENABLE_LZMA).
Definition at line 362 of file Compression.cpp.