16#ifndef LIEF_PE_VC_FEATURE_H
17#define LIEF_PE_VC_FEATURE_H
28 static std::unique_ptr<VCFeature>
parse(
const details::pe_debug& hdr,
46 std::unique_ptr<Debug>
clone()
const override {
47 return std::unique_ptr<Debug>(
new VCFeature(*
this));
70 uint32_t
sdl()
const {
113 uint32_t pre_vc_ = 0;
117 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:75
VCFeature(const VCFeature &other)=default
std::unique_ptr< Debug > clone() const override
Definition VCFeature.hpp:46
uint32_t c_cpp() const
Count for C/C++.
Definition VCFeature.hpp:56
VCFeature & operator=(const VCFeature &other)=default
VCFeature(VCFeature &&)=default
VCFeature & sdl(uint32_t value)
Definition VCFeature.hpp:94
VCFeature & guards(uint32_t value)
Definition VCFeature.hpp:99
static bool classof(const Debug *debug)
Definition VCFeature.hpp:104
VCFeature & c_cpp(uint32_t value)
Definition VCFeature.hpp:84
uint32_t sdl() const
Whether /sdl was enabled for this binary.
Definition VCFeature.hpp:70
uint32_t pre_vcpp() const
Count for Pre-VC++ 11.00.
Definition VCFeature.hpp:51
VCFeature & gs(uint32_t value)
Definition VCFeature.hpp:89
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:79
~VCFeature() override=default
VCFeature & operator=(VCFeature &&other)=default
uint32_t gs() const
Count for /GS (number of guard stack).
Definition VCFeature.hpp:61
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:43