LIEF: Library to Instrument Executable Formats Version 2.0.0
Loading...
Searching...
No Matches
LIEF::MachO::BinaryParser Class Reference

Class used to parse a single binary (i.e. non-FAT). More...

#include <BinaryParser.hpp>

Inheritance diagram for LIEF::MachO::BinaryParser:
Collaboration diagram for LIEF::MachO::BinaryParser:

Public Member Functions

BinaryParseroperator= (const BinaryParser &copy)=delete
 BinaryParser (const BinaryParser &copy)=delete
 ~BinaryParser ()

Static Public Member Functions

static std::unique_ptr< Binaryparse (std::string_view file)
static std::unique_ptr< Binaryparse (std::string_view file, const ParserConfig &conf)
template<class PathT, enable_if_path_t< PathT > = 0>
static std::unique_ptr< Binaryparse (const PathT &file, const ParserConfig &conf=ParserConfig::deep())
 Same as parse(std::string_view, const ParserConfig&) but the file is given as a std::filesystem::path.
static std::unique_ptr< Binaryparse (const std::vector< uint8_t > &data, const ParserConfig &conf=ParserConfig::deep())
static std::unique_ptr< Binaryparse (const std::vector< uint8_t > &data, uint64_t fat_offset, const ParserConfig &conf=ParserConfig::deep())
static std::unique_ptr< Binaryparse (std::unique_ptr< BinaryStream > stream, uint64_t fat_offset, const ParserConfig &conf)
Static Public Member Functions inherited from LIEF::Parser
static std::unique_ptr< Binaryparse (std::string_view filename)
 Construct an LIEF::Binary from the given filename.
template<class PathT, enable_if_path_t< PathT > = 0>
static std::unique_ptr< Binaryparse (const PathT &filename)
 Same as parse(std::string_view) but the file is given as a std::filesystem::path.
static std::unique_ptr< Binaryparse (const std::vector< uint8_t > &raw)
 Construct an LIEF::Binary from the given raw data.
static std::unique_ptr< Binaryparse (std::unique_ptr< BinaryStream > stream)
 Construct an LIEF::Binary from the given stream.

Detailed Description

Class used to parse a single binary (i.e. non-FAT).

Warning
This class should not be used directly.
See also
MachO::Parser

Constructor & Destructor Documentation

◆ BinaryParser()

LIEF::MachO::BinaryParser::BinaryParser ( const BinaryParser & copy)
delete

References BinaryParser().

Referenced by BinaryParser(), operator=(), and ~BinaryParser().

◆ ~BinaryParser()

LIEF::MachO::BinaryParser::~BinaryParser ( )

Member Function Documentation

◆ operator=()

BinaryParser & LIEF::MachO::BinaryParser::operator= ( const BinaryParser & copy)
delete

References BinaryParser().

◆ parse() [1/6]

template<class PathT, enable_if_path_t< PathT > = 0>
std::unique_ptr< Binary > LIEF::MachO::BinaryParser::parse ( const PathT & file,
const ParserConfig & conf = ParserConfig::deep() )
inlinestatic

Same as parse(std::string_view, const ParserConfig&) but the file is given as a std::filesystem::path.

References LIEF::MachO::ParserConfig::deep(), and parse().

◆ parse() [2/6]

std::unique_ptr< Binary > LIEF::MachO::BinaryParser::parse ( const std::vector< uint8_t > & data,
const ParserConfig & conf = ParserConfig::deep() )
static

◆ parse() [3/6]

std::unique_ptr< Binary > LIEF::MachO::BinaryParser::parse ( const std::vector< uint8_t > & data,
uint64_t fat_offset,
const ParserConfig & conf = ParserConfig::deep() )
static

◆ parse() [4/6]

std::unique_ptr< Binary > LIEF::MachO::BinaryParser::parse ( std::string_view file)
static

Referenced by parse(), and ~BinaryParser().

◆ parse() [5/6]

std::unique_ptr< Binary > LIEF::MachO::BinaryParser::parse ( std::string_view file,
const ParserConfig & conf )
static

◆ parse() [6/6]

std::unique_ptr< Binary > LIEF::MachO::BinaryParser::parse ( std::unique_ptr< BinaryStream > stream,
uint64_t fat_offset,
const ParserConfig & conf )
static

The documentation for this class was generated from the following file: