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,
93 ok_error_t undo_reloc_bindings(uintptr_t base_address);
95 std::unique_ptr<BinaryStream> stream_;
96 std::vector<std::unique_ptr<Binary>> binaries_;
The main interface to parse a Mach-O binary.
Definition MachO/Parser.hpp:42
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
LIEF namespace.
Definition Abstract/Binary.hpp:32
result< ok_t > ok_error_t
Opaque structure that is used by LIEF to avoid writing result<void> f(...). Instead,...
Definition errors.hpp:108
This structure is used to tweak the MachO Parser (MachO::Parser)
Definition MachO/ParserConfig.hpp:24
#define LIEF_API
Definition visibility.h:41