reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/BinaryFormat/Magic.cpp
   35   if (Magic.size() < 4)
   37   switch ((unsigned char)Magic[0]) {
   40     if (startswith(Magic, "\0\0\xFF\xFF")) {
   43       if (Magic.size() < MinSize)
   46       const char *Start = Magic.data() + offsetof(COFF::BigObjHeader, UUID);
   54     if (Magic.size() >= sizeof(COFF::WinResMagic) &&
   55         memcmp(Magic.data(), COFF::WinResMagic, sizeof(COFF::WinResMagic)) == 0)
   58     if (Magic[1] == 0)
   60     if (startswith(Magic, "\0asm"))
   67     if (startswith(Magic, "\x01\xDF"))
   69     if (startswith(Magic, "\x01\xF7"))
   74     if (startswith(Magic, "\xDE\xC0\x17\x0B"))
   78     if (startswith(Magic, "BC\xC0\xDE"))
   82     if (startswith(Magic, "!<arch>\n") || startswith(Magic, "!<thin>\n"))
   82     if (startswith(Magic, "!<arch>\n") || startswith(Magic, "!<thin>\n"))
   87     if (startswith(Magic, "\177ELF") && Magic.size() >= 18) {
   87     if (startswith(Magic, "\177ELF") && Magic.size() >= 18) {
   88       bool Data2MSB = Magic[5] == 2;
   91       if (Magic[high] == 0) {
   92         switch (Magic[low]) {
  111     if (startswith(Magic, "\xCA\xFE\xBA\xBE") ||
  112         startswith(Magic, "\xCA\xFE\xBA\xBF")) {
  115       if (Magic.size() >= 8 && Magic[7] < 43)
  115       if (Magic.size() >= 8 && Magic[7] < 43)
  127     if (startswith(Magic, "\xFE\xED\xFA\xCE") ||
  128         startswith(Magic, "\xFE\xED\xFA\xCF")) {
  131       if (Magic[3] == char(0xCE))
  135       if (Magic.size() >= MinSize)
  136         type = Magic[12] << 24 | Magic[13] << 12 | Magic[14] << 8 | Magic[15];
  136         type = Magic[12] << 24 | Magic[13] << 12 | Magic[14] << 8 | Magic[15];
  136         type = Magic[12] << 24 | Magic[13] << 12 | Magic[14] << 8 | Magic[15];
  136         type = Magic[12] << 24 | Magic[13] << 12 | Magic[14] << 8 | Magic[15];
  137     } else if (startswith(Magic, "\xCE\xFA\xED\xFE") ||
  138                startswith(Magic, "\xCF\xFA\xED\xFE")) {
  141       if (Magic[0] == char(0xCE))
  145       if (Magic.size() >= MinSize)
  146         type = Magic[15] << 24 | Magic[14] << 12 | Magic[13] << 8 | Magic[12];
  146         type = Magic[15] << 24 | Magic[14] << 12 | Magic[13] << 8 | Magic[12];
  146         type = Magic[15] << 24 | Magic[14] << 12 | Magic[13] << 8 | Magic[12];
  146         type = Magic[15] << 24 | Magic[14] << 12 | Magic[13] << 8 | Magic[12];
  183     if (Magic[1] == 0x01)
  189     if (Magic[1] == 0x02)
  195     if (startswith(Magic, "MZ") && Magic.size() >= 0x3c + 4) {
  195     if (startswith(Magic, "MZ") && Magic.size() >= 0x3c + 4) {
  196       uint32_t off = read32le(Magic.data() + 0x3c);
  198       if (Magic.substr(off).startswith(
  202     if (Magic.startswith("Microsoft C/C++ MSF 7.00\r\n"))
  204     if (startswith(Magic, "MDMP"))
  209     if (Magic[1] == char(0x86) || Magic[1] == char(0xaa))
  209     if (Magic[1] == char(0x86) || Magic[1] == char(0xaa))
  214     if (startswith(Magic, "--- !tapi") || startswith(Magic, "---\narchs:"))
  214     if (startswith(Magic, "--- !tapi") || startswith(Magic, "---\narchs:"))