LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
utils.hpp File Reference
#include <cstdint>
#include <functional>
#include "LIEF/visibility.h"
#include <string>
#include <vector>
Include dependency graph for MachO/utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LIEF
 LIEF namespace.
 
namespace  LIEF::MachO
 Namespace related to the LIEF's Mach-O module.
 

Typedefs

using LIEF::MachO::segment_callback_t
 

Functions

bool LIEF::MachO::is_macho (BinaryStream &stream)
 Check if the given stream wraps a Mach-O binary.
 
bool LIEF::MachO::is_macho (const std::string &file)
 Check if the given file is a Mach-O binary.
 
bool LIEF::MachO::is_macho (const std::vector< uint8_t > &raw)
 Check if the given raw data is a Mach-O binary.
 
bool LIEF::MachO::is_fat (const std::string &file)
 Check if the given file is a FAT Mach-O.
 
bool LIEF::MachO::is_64 (const std::string &file)
 Check if the given Mach-O is 64-bits.
 
bool LIEF::MachO::is_64 (BinaryStream &stream)
 
bool LIEF::MachO::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/libstuff/checkout.c.
 
bool LIEF::MachO::check_layout (const FatBinary &binary, std::string *error=nullptr)
 Check the layout of the given FAT Mach-O by checking individually the layout of the binaries embedded in the FAT.
 
void LIEF::MachO::foreach_segment (BinaryStream &stream, const segment_callback_t cbk)