16#ifndef LIEF_ABSTRACT_PARSER_H
17#define LIEF_ABSTRACT_PARSER_H
36 static std::unique_ptr<Binary>
parse(
const std::string& filename);
43 static std::unique_ptr<Binary>
parse(
const std::vector<uint8_t>& raw);
49 static std::unique_ptr<Binary>
parse(std::unique_ptr<BinaryStream> stream);
52 Parser(
const std::string& file);
53 uint64_t binary_size_ = 0;
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:32
#define LIEF_API
Definition visibility.h:41