16#ifndef LIEF_MACHO_PARSER_H
17#define LIEF_MACHO_PARSER_H
57 static std::unique_ptr<FatBinary>
parse(
const std::string& filename,
68 static std::unique_ptr<FatBinary>
parse(
const std::vector<uint8_t>& data,
73 static std::unique_ptr<FatBinary>
parse(std::unique_ptr<BinaryStream> stream,
95 std::unique_ptr<BinaryStream> stream_;
96 std::vector<std::unique_ptr<Binary>> binaries_;
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:88
Class which represent a Mach-O (fat) binary This object is also used for representing Mach-O binaries...
Definition FatBinary.hpp:36
static std::unique_ptr< FatBinary > parse_from_memory(uintptr_t address, size_t size, const ParserConfig &conf=ParserConfig::deep())
Parse the Mach-O binary from the address given in the first parameter and the size given in the secon...
Parser(const Parser ©)=delete
static std::unique_ptr< FatBinary > parse(std::unique_ptr< BinaryStream > stream, const ParserConfig &conf=ParserConfig::deep())
Parser a Mach-O binary from the provided BinaryStream.
static std::unique_ptr< FatBinary > parse_from_memory(uintptr_t address, const ParserConfig &conf=ParserConfig::deep())
Parse the Mach-O binary from the address given in the first parameter.
static std::unique_ptr< FatBinary > parse(const std::vector< uint8_t > &data, const ParserConfig &conf=ParserConfig::deep())
Parse a Mach-O file from the raw content provided by the data parameter.
Parser & operator=(const Parser ©)=delete
static std::unique_ptr< FatBinary > parse(const std::string &filename, const ParserConfig &conf=ParserConfig::deep())
Parse a Mach-O file from the path provided by the filename parameter.
Main interface to parse an executable regardless of its format.
Definition Abstract/Parser.hpp:30
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
LIEF namespace.
Definition Abstract/Binary.hpp:40
result< ok_t > ok_error_t
Opaque structure that is used by LIEF to avoid writing result<void> f(...). Instead,...
Definition errors.hpp:109
This structure is used to tweak the MachO Parser (MachO::Parser).
Definition MachO/ParserConfig.hpp:24
static ParserConfig deep()
Return a parser configuration such as all the objects supported by LIEF are parsed.
#define LIEF_API
Definition visibility.h:41
#define LIEF_LOCAL
Definition visibility.h:42