LLVM 20.0.0git
Functions
Magic.cpp File Reference
#include "llvm/BinaryFormat/Magic.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/COFF.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/MemoryBuffer.h"
#include <unistd.h>

Go to the source code of this file.

Functions

template<size_t N>
static bool startswith (StringRef Magic, const char(&S)[N])
 

Function Documentation

◆ startswith()

template<size_t N>
static bool startswith ( StringRef  Magic,
const char(&)  S[N] 
)
static

Definition at line 28 of file Magic.cpp.

References N.

Referenced by llvm::identify_magic().