Go to the documentation of this file.
16#ifndef LIEF_ABSTRACT_PARSER_H
17#define LIEF_ABSTRACT_PARSER_H
31 public:
static std::unique_ptr<Binary>
parse(
const std::string& filename);
38 static std::unique_ptr<Binary>
parse(
const std::vector<uint8_t>& raw);
44 static std::unique_ptr<Binary>
parse(std::unique_ptr<BinaryStream> stream);
52 Parser(
const std::string& file);
53 uint64_t binary_size_ = 0;
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:33
Abstract binary that exposes an uniform API for the different executable file formats.
Definition Abstract/Binary.hpp:49
Main interface to parse an executable regardless of its format.
Definition Abstract/Parser.hpp:30
static std::unique_ptr< Binary > parse(const std::vector< uint8_t > &raw)
Construct an LIEF::Binary from the given raw data.
static std::unique_ptr< Binary > parse(std::unique_ptr< BinaryStream > stream)
Construct an LIEF::Binary from the given stream.
static std::unique_ptr< Binary > parse(const std::string &filename)
Construct an LIEF::Binary from the given filename.
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41