Compress Input with zstd into CompressedBuffer.

Synopsis

Declared in <llvm/Support/Compression.h>

void
compress(
    ArrayRef<uint8_t> Input,
    SmallVectorImpl<uint8_t>& CompressedBuffer,
    int Level = DefaultCompression,
    bool EnableLdm = false);

Parameters

Name

Description

Input

Bytes to compress.

CompressedBuffer

Destination; resized to the compressed size.

Level

zstd compression level. Defaults to DefaultCompression.

EnableLdm

Whether to enable zstd long‐distance matching.

Created with MrDocs