llvm::compression::zlib::decompress

Decompress zlib-compressed Input into Output.

Synopsis

Declared in <llvm/Support/Compression.h>

Error
decompress(
    ArrayRef<uint8_t> Input,
    SmallVectorImpl<uint8_t>& Output,
    size_t UncompressedSize);

Return Value

Success, or an error describing the zlib failure.

Parameters

NameDescription
InputCompressed bytes.
OutputDestination; resized to UncompressedSize bytes.
UncompressedSizeExpected uncompressed size in bytes.