LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for LIEF::PE::ResourceVarFileInfo:
Collaboration graph
[legend]

Public Member Functions

 ResourceVarFileInfo (uint16_t type, std::u16string key)
 
 ResourceVarFileInfo (const ResourceVarFileInfo &)
 
ResourceVarFileInfooperator= (const ResourceVarFileInfo &)
 
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 (const std::u16string &key)
 
void key (const std::string &key)
 
void translations (const std::vector< uint32_t > &translations)
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::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
 

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

Member Function Documentation

◆ accept()

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

Implements LIEF::Object.

◆ translations()

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

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.

◆ type()

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

The type of data in the version resource.

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

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