16#ifndef LIEF_PE_RESOURCE_VAR_H
17#define LIEF_PE_RESOURCE_VAR_H
51 const std::u16string&
key()
const {
80 key_ = std::move(
key);
90 values_.push_back(val);
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:33
ResourceVar & operator=(const ResourceVar &)=default
ResourceVar(const ResourceVar &)=default
std::vector< uint32_t > values_t
Translation values as a vector of uint32_t.
Definition ResourceVar.hpp:36
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:40
tl::expected< T, lief_errors > result
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:75
#define LIEF_API
Definition visibility.h:41