LLVM API Documentation

Enumerations | Functions
llvm::zlib Namespace Reference

Enumerations

enum  CompressionLevel { NoCompression, DefaultCompression, BestSpeedCompression, BestSizeCompression }
enum  Status {
  StatusOK, StatusUnsupported, StatusOutOfMemory, StatusBufferTooShort,
  StatusInvalidArg, StatusInvalidData
}

Functions

bool isAvailable ()
Status compress (StringRef InputBuffer, SmallVectorImpl< char > &CompressedBuffer, CompressionLevel Level=DefaultCompression)
Status uncompress (StringRef InputBuffer, SmallVectorImpl< char > &UncompressedBuffer, size_t UncompressedSize)
uint32_t crc32 (StringRef Buffer)

Enumeration Type Documentation

Enumerator:
NoCompression 
DefaultCompression 
BestSpeedCompression 
BestSizeCompression 

Definition at line 27 of file Compression.h.

Enumerator:
StatusOK 
StatusUnsupported 
StatusOutOfMemory 
StatusBufferTooShort 
StatusInvalidArg 
StatusInvalidData 

Definition at line 34 of file Compression.h.


Function Documentation

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

Definition at line 78 of file Compression.cpp.

References StatusUnsupported.

Referenced by getCompressedFragment().

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

Definition at line 88 of file Compression.cpp.

References llvm_unreachable.

Definition at line 77 of file Compression.cpp.

Referenced by llvm::DWARFContextInMemory::DWARFContextInMemory().

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

Definition at line 83 of file Compression.cpp.

References StatusUnsupported.

Referenced by llvm::DWARFContextInMemory::DWARFContextInMemory().