LLVM
15.0.0git
|
Functions | |
bool | isAvailable () |
void | compress (StringRef InputBuffer, SmallVectorImpl< char > &CompressedBuffer, int Level=DefaultCompression) |
Error | uncompress (StringRef InputBuffer, char *UncompressedBuffer, size_t &UncompressedSize) |
Error | uncompress (StringRef InputBuffer, SmallVectorImpl< char > &UncompressedBuffer, size_t UncompressedSize) |
uint32_t | crc32 (StringRef Buffer) |
Variables | |
static constexpr int | NoCompression = 0 |
static constexpr int | BestSpeedCompression = 1 |
static constexpr int | DefaultCompression = 6 |
static constexpr int | BestSizeCompression = 9 |
void llvm::zlib::compress | ( | StringRef | InputBuffer, |
SmallVectorImpl< char > & | CompressedBuffer, | ||
int | Level = DefaultCompression |
||
) |
Definition at line 49 of file Compression.cpp.
References __msan_unpoison, assert(), llvm::StringRef::data(), llvm::report_bad_alloc_error(), llvm::SmallVectorImpl< T >::resize_for_overwrite(), llvm::StringRef::size(), and llvm::SmallVectorImpl< T >::truncate().
Referenced by llvm::collectPGOFuncNameStrings(), llvm::objcopy::elf::CompressedSection::CompressedSection(), and llvm::coverage::CoverageFilenamesSectionWriter::write().
Definition at line 86 of file Compression.cpp.
References llvm::StringRef::data(), and llvm::StringRef::size().
bool llvm::zlib::isAvailable | ( | ) |
Definition at line 47 of file Compression.cpp.
Referenced by llvm::collectPGOFuncNameStrings(), llvm::object::Decompressor::create(), llvm::readPGOFuncNameStrings(), and llvm::coverage::CoverageFilenamesSectionWriter::write().
Error llvm::zlib::uncompress | ( | StringRef | InputBuffer, |
char * | UncompressedBuffer, | ||
size_t & | UncompressedSize | ||
) |
Definition at line 65 of file Compression.cpp.
References __msan_unpoison, convertZlibCodeToString(), llvm::createError(), llvm::StringRef::data(), llvm::StringRef::size(), and llvm::Error::success().
Referenced by llvm::object::Decompressor::decompress(), llvm::readPGOFuncNameStrings(), and uncompress().
Error llvm::zlib::uncompress | ( | StringRef | InputBuffer, |
SmallVectorImpl< char > & | UncompressedBuffer, | ||
size_t | UncompressedSize | ||
) |
Definition at line 76 of file Compression.cpp.
References E, llvm::SmallVectorImpl< T >::resize_for_overwrite(), llvm::SmallVectorImpl< T >::truncate(), and uncompress().
|
staticconstexpr |
Definition at line 28 of file Compression.h.
Referenced by llvm::collectPGOFuncNameStrings(), and llvm::coverage::CoverageFilenamesSectionWriter::write().
|
staticconstexpr |
Definition at line 26 of file Compression.h.
|
staticconstexpr |
Definition at line 27 of file Compression.h.
|
staticconstexpr |
Definition at line 25 of file Compression.h.