LLVM 24.0.0git
Compression.cpp File Reference
#include "llvm/Support/Compression.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Config/config.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
#include <limits>
#include <optional>

Go to the source code of this file.

Functions

static bool isZlibHeader (ArrayRef< uint8_t > Input)
static bool isZstdMagic (ArrayRef< uint8_t > Input)
static std::optional< Format > identifyFormat (ArrayRef< uint8_t > Input)

Function Documentation

◆ identifyFormat()

std::optional< Format > identifyFormat ( ArrayRef< uint8_t > Input)
static

◆ isZlibHeader()

bool isZlibHeader ( ArrayRef< uint8_t > Input)
static

Definition at line 42 of file Compression.cpp.

Referenced by identifyFormat().

◆ isZstdMagic()

bool isZstdMagic ( ArrayRef< uint8_t > Input)
static

Definition at line 53 of file Compression.cpp.

References llvm::ArrayRef().

Referenced by identifyFormat().