16#ifndef LIEF_MACHO_UTILS_H
17#define LIEF_MACHO_UTILS_H
19#include "LIEF/types.hpp"
20#include "LIEF/visibility.h"
35LIEF_API
bool is_macho(
const std::string& file);
38LIEF_API
bool is_macho(
const std::vector<uint8_t>& raw);
41LIEF_API
bool is_fat(
const std::string& file);
44LIEF_API
bool is_64(
const std::string& file);
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:34
Class which represents a MachO binary.
Definition MachO/Binary.hpp:73
Class which represent a Mach-O (fat) binary This object is also used for representing Mach-O binaries...
Definition FatBinary.hpp:36
bool check_layout(const Binary &binary, std::string *error=nullptr)
Check the layout of the given Mach-O binary. It checks if it can be signed according to cctools-921/l...
bool is_fat(const std::string &file)
Check if the given file is a FAT Mach-O.
bool is_macho(BinaryStream &stream)
Check if the given stream wraps a Mach-O binary.
bool is_64(const std::string &file)
Check if the given Mach-O is 64-bits.
LIEF namespace.
Definition Abstract/Binary.hpp:32