LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Class which represents the DosHeader, the first structure presents at the beginning of a PE file. More...
#include <DosHeader.hpp>
Public Types | |
using | reserved_t = std::array<uint16_t, 4> |
using | reserved2_t = std::array<uint16_t, 10> |
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>>> |
Public Member Functions | |
DosHeader (const details::pe_dos_header &header) | |
DosHeader (const DosHeader &)=default | |
DosHeader & | operator= (const DosHeader &)=default |
DosHeader (DosHeader &&)=default | |
DosHeader & | operator= (DosHeader &&)=default |
~DosHeader () override=default | |
uint16_t | magic () const |
Magic bytes identifying a DOS/PE binary. | |
uint16_t | used_bytes_in_last_page () const |
uint16_t | file_size_in_pages () const |
uint16_t | numberof_relocation () const |
uint16_t | header_size_in_paragraphs () const |
uint16_t | minimum_extra_paragraphs () const |
uint16_t | maximum_extra_paragraphs () const |
uint16_t | initial_relative_ss () const |
uint16_t | initial_sp () const |
uint16_t | checksum () const |
uint16_t | initial_ip () const |
uint16_t | initial_relative_cs () const |
uint16_t | addressof_relocation_table () const |
uint16_t | overlay_number () const |
const reserved_t & | reserved () const |
uint16_t | oem_id () const |
uint16_t | oem_info () const |
const reserved2_t & | reserved2 () const |
uint32_t | addressof_new_exeheader () const |
Return the offset to the PE::Header structure. | |
void | magic (uint16_t magic) |
void | used_bytes_in_last_page (uint16_t value) |
void | file_size_in_pages (uint16_t value) |
void | numberof_relocation (uint16_t value) |
void | header_size_in_paragraphs (uint16_t value) |
void | minimum_extra_paragraphs (uint16_t value) |
void | maximum_extra_paragraphs (uint16_t value) |
void | initial_relative_ss (uint16_t value) |
void | initial_sp (uint16_t value) |
void | checksum (uint16_t value) |
void | initial_ip (uint16_t value) |
void | initial_relative_cs (uint16_t value) |
void | addressof_relocation_table (uint16_t value) |
void | overlay_number (uint16_t value) |
void | reserved (const reserved_t &reserved) |
void | oem_id (uint16_t value) |
void | oem_info (uint16_t value) |
void | reserved2 (const reserved2_t &reserved2) |
void | addressof_new_exeheader (uint32_t value) |
void | accept (Visitor &visitor) const override |
Public Member Functions inherited from LIEF::Object | |
Object () | |
Object (const Object &other) | |
Object & | operator= (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 () |
Static Public Member Functions | |
static DosHeader | create (PE_TYPE type) |
Static Public Attributes | |
static constexpr uint16_t | MAGIC = 0x5a4d |
Class which represents the DosHeader, the first structure presents at the beginning of a PE file.
Most of the attributes of this structures are no longer relevant.
using LIEF::PE::DosHeader::reserved2_t = std::array<uint16_t, 10> |
using LIEF::PE::DosHeader::reserved_t = std::array<uint16_t, 4> |
LIEF::PE::DosHeader::DosHeader | ( | const details::pe_dos_header & | header | ) |
|
default |
|
default |
|
overridedefault |
|
overridevirtual |
Implements LIEF::Object.
|
inline |
Return the offset to the PE::Header structure.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Magic bytes identifying a DOS/PE binary.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |