LLVM: lib/BinaryFormat/Magic.cpp File Reference (original) (raw)
#include "[llvm/BinaryFormat/Magic.h](Magic%5F8h%5Fsource.html)"
#include "[llvm/ADT/StringRef.h](StringRef%5F8h%5Fsource.html)"
#include "[llvm/ADT/Twine.h](Twine%5F8h%5Fsource.html)"
#include "[llvm/BinaryFormat/COFF.h](BinaryFormat%5F2COFF%5F8h%5Fsource.html)"
#include "[llvm/BinaryFormat/MachO.h](BinaryFormat%5F2MachO%5F8h%5Fsource.html)"
#include "[llvm/Support/Endian.h](Endian%5F8h%5Fsource.html)"
#include "[llvm/Support/MemoryBuffer.h](MemoryBuffer%5F8h%5Fsource.html)"
#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().