16#ifndef LIEF_MACHO_UTILS_H
17#define LIEF_MACHO_UTILS_H
59 void(
const std::string& name, uint64_t offset, uint64_t size, uint64_t addr, uint64_t vsize)
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:33
Class which represents a MachO binary.
Definition MachO/Binary.hpp:86
Class which represent a Mach-O (fat) binary This object is also used for representing Mach-O binaries...
Definition FatBinary.hpp:36
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
std::function< void(const std::string &name, uint64_t offset, uint64_t size, uint64_t addr, uint64_t vsize) > segment_callback_t
Definition MachO/utils.hpp:58
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...
void foreach_segment(BinaryStream &stream, const segment_callback_t cbk)
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:36
#define LIEF_API
Definition visibility.h:41