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_RESOURCE_VAR_H
17#define LIEF_PE_RESOURCE_VAR_H
34 public:
using values_t = std::vector<uint32_t>;
38 static result<ResourceVar>
parse(BinaryStream& stream);
43 ResourceVar&
operator=(
const ResourceVar&) =
default;
49 const std::u16string&
key()
const {
54 uint16_t
type()
const {
61 std::string
key_u8()
const;
64 const values_t&
values()
const {
79 ResourceVar&
key(std::u16string key) {
80 key_ = std::move(key);
84 ResourceVar&
type(uint16_t ty) {
90 values_.push_back(val);
94 std::ostream&
operator<<(std::ostream& os,
const ResourceVar& entry);
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:33
This class represents an element of the ResourceVarFileInfo structure It typically contains a list of...
Definition ResourceVar.hpp:33
ResourceVar & operator=(const ResourceVar &)=default
ResourceVar(const ResourceVar &)=default
friend std::ostream & operator<<(std::ostream &os, const ResourceVar &entry)
ResourceVar & key(std::u16string key)
Definition ResourceVar.hpp:79
ResourceVar & type(uint16_t ty)
Definition ResourceVar.hpp:84
static result< ResourceVar > parse(BinaryStream &stream)
values_t & values()
Definition ResourceVar.hpp:75
std::string key_u8() const
The key as an utf8 string.
uint16_t type() const
The type of data in the version resource:
Definition ResourceVar.hpp:58
ResourceVar(ResourceVar &&)=default
const std::u16string & key() const
The Unicode string L"Translation"
Definition ResourceVar.hpp:51
void add_value(uint32_t val)
Definition ResourceVar.hpp:89
const values_t & values() const
Return the translation values.
Definition ResourceVar.hpp:71
ResourceVar & operator=(ResourceVar &&)=default
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