LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::PE::ResourceVarFileInfo Class Reference

This object describes information about languages supported by the application. More...

#include <ResourceVarFileInfo.hpp>

Inheritance diagram for LIEF::PE::ResourceVarFileInfo:
Collaboration diagram for LIEF::PE::ResourceVarFileInfo:

Public Member Functions

 ResourceVarFileInfo ()
 
 ResourceVarFileInfo (uint16_t type, std::u16string key)
 
 ResourceVarFileInfo (const ResourceVarFileInfo &)=default
 
ResourceVarFileInfooperator= (const ResourceVarFileInfo &)=default
 
 ~ResourceVarFileInfo () override=default
 
uint16_t type () const
 The type of data in the version resource.
 
const std::u16string & key () const
 Signature of the structure: Must be the unicode string "VarFileInfo".
 
const std::vector< uint32_t > & translations () const
 List of languages that the application supports.
 
std::vector< uint32_t > & translations ()
 
void type (uint16_t type)
 
void key (std::u16string key)
 
void key (const std::string &key)
 
void translations (std::vector< uint32_t > translations)
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 
virtual ~Object ()
 

Additional Inherited Members

- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Detailed Description

This object describes information about languages supported by the application.

See also
LIEF::PE::ResourceVersion

Constructor & Destructor Documentation

◆ ResourceVarFileInfo() [1/3]

LIEF::PE::ResourceVarFileInfo::ResourceVarFileInfo ( )

◆ ResourceVarFileInfo() [2/3]

LIEF::PE::ResourceVarFileInfo::ResourceVarFileInfo ( uint16_t type,
std::u16string key )

◆ ResourceVarFileInfo() [3/3]

LIEF::PE::ResourceVarFileInfo::ResourceVarFileInfo ( const ResourceVarFileInfo & )
default

◆ ~ResourceVarFileInfo()

LIEF::PE::ResourceVarFileInfo::~ResourceVarFileInfo ( )
overridedefault

Member Function Documentation

◆ accept()

void LIEF::PE::ResourceVarFileInfo::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ key() [1/3]

const std::u16string & LIEF::PE::ResourceVarFileInfo::key ( ) const
inline

Signature of the structure: Must be the unicode string "VarFileInfo".

◆ key() [2/3]

void LIEF::PE::ResourceVarFileInfo::key ( const std::string & key)

◆ key() [3/3]

void LIEF::PE::ResourceVarFileInfo::key ( std::u16string key)
inline

◆ operator=()

ResourceVarFileInfo & LIEF::PE::ResourceVarFileInfo::operator= ( const ResourceVarFileInfo & )
default

◆ translations() [1/3]

std::vector< uint32_t > & LIEF::PE::ResourceVarFileInfo::translations ( )
inline

◆ translations() [2/3]

const std::vector< uint32_t > & LIEF::PE::ResourceVarFileInfo::translations ( ) const
inline

List of languages that the application supports.

The least significant 16-bits must contain a Microsoft language identifier, and the most significant 16-bits must contain the PE::CODE_PAGES Either most or least 16-bits can be zero, indicating that the file is language or code page independent.

◆ translations() [3/3]

void LIEF::PE::ResourceVarFileInfo::translations ( std::vector< uint32_t > translations)
inline

◆ type() [1/2]

uint16_t LIEF::PE::ResourceVarFileInfo::type ( ) const
inline

The type of data in the version resource.

  • 1 if it contains text data
  • 0 if it contains binary data

◆ type() [2/2]

void LIEF::PE::ResourceVarFileInfo::type ( uint16_t type)
inline

The documentation for this class was generated from the following file: