llvm::isRawBitcode

isRawBitcode - Return true if the given bytes are the magic bytes for raw LLVM IR bitcode (without a wrapper).

Synopsis

Declared in <llvm/Bitcode/BitcodeReader.h>

bool
isRawBitcode(
    unsigned char const* BufPtr,
    unsigned char const* BufEnd);

Return Value

True if the buffer starts with the raw bitcode magic bytes.

Parameters

NameDescription
BufPtrPointer to the start of the buffer.
BufEndPointer one past the end of the buffer.