LLVM  8.0.1
Functions | Variables
llvm::zlib Namespace Reference

Functions

bool isAvailable ()
 
Error 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
 

Function Documentation

◆ compress()

Error llvm::zlib::compress ( StringRef  InputBuffer,
SmallVectorImpl< char > &  CompressedBuffer,
int  Level = DefaultCompression 
)

◆ crc32()

uint32_t llvm::zlib::crc32 ( StringRef  Buffer)

◆ isAvailable()

bool llvm::zlib::isAvailable ( )

◆ uncompress() [1/2]

Error llvm::zlib::uncompress ( StringRef  InputBuffer,
char UncompressedBuffer,
size_t &  UncompressedSize 
)

◆ uncompress() [2/2]

Error llvm::zlib::uncompress ( StringRef  InputBuffer,
SmallVectorImpl< char > &  UncompressedBuffer,
size_t  UncompressedSize 
)

Variable Documentation

◆ BestSizeCompression

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

Definition at line 29 of file Compression.h.

Referenced by llvm::collectPGOFuncNameStrings().

◆ BestSpeedCompression

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

Definition at line 27 of file Compression.h.

◆ DefaultCompression

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

Definition at line 28 of file Compression.h.

◆ NoCompression

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

Definition at line 26 of file Compression.h.