16#ifndef LIEF_PE_REPRO_H
17#define LIEF_PE_REPRO_H
48 hash_{std::move(
hash)} {}
52 hash_{std::move(
hash)} {}
72 void hash(std::vector<uint8_t> h) {
76 std::unique_ptr<Debug>
clone()
const override {
77 return std::unique_ptr<Debug>(
new Repro(*
this));
91 std::vector<uint8_t> hash_;
Class that is used to rebuild a raw PE binary from a PE::Binary object.
Definition PE/Builder.hpp:45
TYPES
The entry types.
Definition debug/Debug.hpp:46
@ REPRO
PE determinism or reproducibility information.
Definition debug/Debug.hpp:94
Main interface to parse PE binaries. In particular, the static Parser::parse functions should be used...
Definition PE/Parser.hpp:52
span< uint8_t > hash()
Definition Repro.hpp:68
Repro & operator=(Repro &&other)=default
void hash(std::vector< uint8_t > h)
Definition Repro.hpp:72
void accept(Visitor &visitor) const override
friend class Builder
Definition Repro.hpp:39
std::string to_string() const override
Repro(std::vector< uint8_t > hash)
Definition Repro.hpp:46
static bool classof(const Debug *debug)
Definition Repro.hpp:80
~Repro() override=default
Repro(const Repro &other)=default
Repro(const details::pe_debug &dbg, Section *sec)
Definition Repro.hpp:54
friend class Parser
Definition Repro.hpp:40
span< const uint8_t > hash() const
The hash associated with the reproducible build.
Definition Repro.hpp:64
Repro()
Definition Repro.hpp:43
Repro & operator=(const Repro &other)=default
Repro(const details::pe_debug &dbg, std::vector< uint8_t > hash, Section *sec)
Definition Repro.hpp:50
std::unique_ptr< Debug > clone() const override
Definition Repro.hpp:76
Class which represents a PE section.
Definition PE/Section.hpp:47
Definition Visitor.hpp:212
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:41
tcb::span< ElementType, Extent > span
Definition span.hpp:22
#define LIEF_API
Definition visibility.h:45