16#ifndef LIEF_PE_VC_FEATURE_H
17#define LIEF_PE_VC_FEATURE_H
28 static std::unique_ptr<VCFeature>
32 uint32_t pre_vc, uint32_t
c_cpp, uint32_t
gs, uint32_t
sdl,
35 pre_vc_(pre_vc), c_cpp_(
c_cpp),
45 std::unique_ptr<Debug>
clone()
const override {
46 return std::unique_ptr<Debug>(
new VCFeature(*
this));
69 uint32_t
sdl()
const {
111 uint32_t pre_vc_ = 0;
115 uint32_t guards_ = 0;
span< uint8_t > payload()
Debug data associated with this entry.
const Section * section() const
The section where debug data is located.
Definition debug/Debug.hpp:170
@ VC_FEATURE
Visual C++ feature information.
Definition debug/Debug.hpp:83
Class which represents a PE section.
Definition PE/Section.hpp:46
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:40
tcb::span< ElementType, Extent > span
Definition span.hpp:22
#define LIEF_API
Definition visibility.h:41