isBitcode ‐ Return true if the given bytes are the magic bytes for LLVM IR bitcode, either with or without a wrapper.

Synopsis

Declared in <llvm/Bitcode/BitcodeReader.h>

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

Return Value

True if the buffer starts with wrapped or raw bitcode magic.

Parameters

Name

Description

BufPtr

Pointer to the start of the buffer.

BufEnd

Pointer one past the end of the buffer.

Created with MrDocs