LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_PE_VC_FEATURE_H
17#define LIEF_PE_VC_FEATURE_H
28 static std::unique_ptr<VCFeature>
29 parse(
const details::pe_debug& hdr, Section* section, span<uint8_t> payload);
31 VCFeature(
const details::pe_debug& debug, Section* sec,
32 uint32_t pre_vc, uint32_t c_cpp, uint32_t gs, uint32_t sdl,
35 pre_vc_(pre_vc), c_cpp_(c_cpp),
36 gs_(gs), sdl_(sdl), guards_(guards)
40 VCFeature&
operator=(
const VCFeature& other) =
default;
45 std::unique_ptr<Debug>
clone()
const override {
46 return std::unique_ptr<Debug>(
new VCFeature(*
this));
53 uint32_t
c_cpp()
const {
63 uint32_t
sdl()
const {
83 VCFeature&
c_cpp(uint32_t value) {
88 VCFeature&
gs(uint32_t value) {
93 VCFeature&
sdl(uint32_t value) {
104 return debug->type() == Debug::TYPES::VC_FEATURE;
111 uint32_t pre_vc_ = 0;
115 uint32_t guards_ = 0;
This class represents a generic entry in the debug data directory. For known types,...
Definition debug/Debug.hpp:40
This class represents the IMAGE_DEBUG_TYPE_VC_FEATURE debug entry.
Definition VCFeature.hpp:26
std::string to_string() const override
uint32_t guards() const
Count for /guardN
Definition VCFeature.hpp:74
VCFeature(const VCFeature &other)=default
std::unique_ptr< Debug > clone() const override
Definition VCFeature.hpp:45
uint32_t c_cpp() const
Count for C/C++
Definition VCFeature.hpp:55
VCFeature & operator=(const VCFeature &other)=default
VCFeature(VCFeature &&)=default
VCFeature & sdl(uint32_t value)
Definition VCFeature.hpp:93
VCFeature & guards(uint32_t value)
Definition VCFeature.hpp:98
static bool classof(const Debug *debug)
Definition VCFeature.hpp:103
VCFeature & c_cpp(uint32_t value)
Definition VCFeature.hpp:83
uint32_t sdl() const
Whether /sdl was enabled for this binary.
Definition VCFeature.hpp:69
uint32_t pre_vcpp() const
Count for Pre-VC++ 11.00
Definition VCFeature.hpp:50
VCFeature & gs(uint32_t value)
Definition VCFeature.hpp:88
VCFeature(const details::pe_debug &debug, Section *sec, uint32_t pre_vc, uint32_t c_cpp, uint32_t gs, uint32_t sdl, uint32_t guards)
Definition VCFeature.hpp:31
VCFeature & pre_vcpp(uint32_t value)
Definition VCFeature.hpp:78
~VCFeature() override=default
VCFeature & operator=(VCFeature &&other)=default
uint32_t gs() const
Count for /GS (number of guard stack)
Definition VCFeature.hpp:60
static std::unique_ptr< VCFeature > parse(const details::pe_debug &hdr, Section *section, span< uint8_t > payload)
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41