LLVM  17.0.0git
Functions | Variables
llvm::compression::zlib Namespace Reference

Functions

bool isAvailable ()
 
void compress (ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &CompressedBuffer, int Level=DefaultCompression)
 
Error decompress (ArrayRef< uint8_t > Input, uint8_t *Output, size_t &UncompressedSize)
 
Error decompress (ArrayRef< uint8_t > Input, SmallVectorImpl< uint8_t > &Output, size_t UncompressedSize)
 

Variables

constexpr int NoCompression = 0
 
constexpr int BestSpeedCompression = 1
 
constexpr int DefaultCompression = 6
 
constexpr int BestSizeCompression = 9
 

Function Documentation

◆ compress()

void llvm::compression::zlib::compress ( ArrayRef< uint8_t >  Input,
SmallVectorImpl< uint8_t > &  CompressedBuffer,
int  Level = DefaultCompression 
)

◆ decompress() [1/2]

Error llvm::compression::zlib::decompress ( ArrayRef< uint8_t >  Input,
SmallVectorImpl< uint8_t > &  Output,
size_t  UncompressedSize 
)

◆ decompress() [2/2]

Error llvm::compression::zlib::decompress ( ArrayRef< uint8_t >  Input,
uint8_t *  Output,
size_t &  UncompressedSize 
)

◆ isAvailable()

bool llvm::compression::zlib::isAvailable ( )

Variable Documentation

◆ BestSizeCompression

constexpr int llvm::compression::zlib::BestSizeCompression = 9
constexpr

◆ BestSpeedCompression

constexpr int llvm::compression::zlib::BestSpeedCompression = 1
constexpr

Definition at line 37 of file Compression.h.

◆ DefaultCompression

constexpr int llvm::compression::zlib::DefaultCompression = 6
constexpr

Definition at line 38 of file Compression.h.

◆ NoCompression

constexpr int llvm::compression::zlib::NoCompression = 0
constexpr

Definition at line 36 of file Compression.h.