LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
LIEF::OAT::Header Class Reference

#include <Header.hpp>

Inheritance diagram for LIEF::OAT::Header:
Collaboration diagram for LIEF::OAT::Header:

Classes

struct  element_t
 

Public Types

using magic_t = std::array<uint8_t, 4>
 
using key_values_t = std::map<HEADER_KEYS, std::string>
 
using it_key_values_t = ref_iterator<std::vector<element_t>>
 
using it_const_key_values_t = const_ref_iterator<std::vector<element_t>>
 
using keys_t = std::vector<HEADER_KEYS>
 Iterator type over.
 
using values_t = std::vector<std::string>
 
- 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

 Header ()
 
 Header (const Header &)
 
Headeroperator= (const Header &)
 
template<class T >
 Header (const T *header)
 
Header::magic_t magic () const
 Magic value: oat
 
oat_version_t version () const
 OAT version.
 
uint32_t checksum () const
 
INSTRUCTION_SETS instruction_set () const
 
uint32_t nb_dex_files () const
 
uint32_t oat_dex_files_offset () const
 
uint32_t executable_offset () const
 
uint32_t i2i_bridge_offset () const
 
uint32_t i2c_code_bridge_offset () const
 
uint32_t jni_dlsym_lookup_offset () const
 
uint32_t quick_generic_jni_trampoline_offset () const
 
uint32_t quick_imt_conflict_trampoline_offset () const
 
uint32_t quick_resolution_trampoline_offset () const
 
uint32_t quick_to_interpreter_bridge_offset () const
 
int32_t image_patch_delta () const
 
uint32_t image_file_location_oat_checksum () const
 
uint32_t image_file_location_oat_data_begin () const
 
uint32_t key_value_size () const
 
it_key_values_t key_values ()
 
it_const_key_values_t key_values () const
 
keys_t keys () const
 
values_t values () const
 
const std::string * get (HEADER_KEYS key) const
 
std::string * get (HEADER_KEYS key)
 
Headerset (HEADER_KEYS key, const std::string &value)
 
const std::string * operator[] (HEADER_KEYS key) const
 
std::string * operator[] (HEADER_KEYS key)
 
void magic (const magic_t &magic)
 
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 ()
 

Static Public Member Functions

static std::string key_to_string (HEADER_KEYS key)
 Return the string value associated with the given key.
 

Member Typedef Documentation

◆ it_const_key_values_t

◆ it_key_values_t

◆ key_values_t

using LIEF::OAT::Header::key_values_t = std::map<HEADER_KEYS, std::string>

◆ keys_t

using LIEF::OAT::Header::keys_t = std::vector<HEADER_KEYS>

Iterator type over.

◆ magic_t

using LIEF::OAT::Header::magic_t = std::array<uint8_t, 4>

◆ values_t

using LIEF::OAT::Header::values_t = std::vector<std::string>

Constructor & Destructor Documentation

◆ Header() [1/3]

LIEF::OAT::Header::Header ( )

◆ Header() [2/3]

LIEF::OAT::Header::Header ( const Header & )

◆ Header() [3/3]

template<class T >
LIEF::OAT::Header::Header ( const T * header)

Member Function Documentation

◆ accept()

void LIEF::OAT::Header::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ checksum()

uint32_t LIEF::OAT::Header::checksum ( ) const

◆ executable_offset()

uint32_t LIEF::OAT::Header::executable_offset ( ) const

◆ get() [1/2]

std::string * LIEF::OAT::Header::get ( HEADER_KEYS key)

◆ get() [2/2]

const std::string * LIEF::OAT::Header::get ( HEADER_KEYS key) const

◆ i2c_code_bridge_offset()

uint32_t LIEF::OAT::Header::i2c_code_bridge_offset ( ) const

◆ i2i_bridge_offset()

uint32_t LIEF::OAT::Header::i2i_bridge_offset ( ) const

◆ image_file_location_oat_checksum()

uint32_t LIEF::OAT::Header::image_file_location_oat_checksum ( ) const

◆ image_file_location_oat_data_begin()

uint32_t LIEF::OAT::Header::image_file_location_oat_data_begin ( ) const

◆ image_patch_delta()

int32_t LIEF::OAT::Header::image_patch_delta ( ) const

◆ instruction_set()

INSTRUCTION_SETS LIEF::OAT::Header::instruction_set ( ) const

◆ jni_dlsym_lookup_offset()

uint32_t LIEF::OAT::Header::jni_dlsym_lookup_offset ( ) const

◆ key_to_string()

static std::string LIEF::OAT::Header::key_to_string ( HEADER_KEYS key)
static

Return the string value associated with the given key.

◆ key_value_size()

uint32_t LIEF::OAT::Header::key_value_size ( ) const

◆ key_values() [1/2]

it_key_values_t LIEF::OAT::Header::key_values ( )

◆ key_values() [2/2]

it_const_key_values_t LIEF::OAT::Header::key_values ( ) const

◆ keys()

keys_t LIEF::OAT::Header::keys ( ) const

◆ magic() [1/2]

Header::magic_t LIEF::OAT::Header::magic ( ) const

Magic value: oat

◆ magic() [2/2]

void LIEF::OAT::Header::magic ( const magic_t & magic)

◆ nb_dex_files()

uint32_t LIEF::OAT::Header::nb_dex_files ( ) const

◆ oat_dex_files_offset()

uint32_t LIEF::OAT::Header::oat_dex_files_offset ( ) const

◆ operator=()

Header & LIEF::OAT::Header::operator= ( const Header & )

◆ operator[]() [1/2]

std::string * LIEF::OAT::Header::operator[] ( HEADER_KEYS key)

◆ operator[]() [2/2]

const std::string * LIEF::OAT::Header::operator[] ( HEADER_KEYS key) const

◆ quick_generic_jni_trampoline_offset()

uint32_t LIEF::OAT::Header::quick_generic_jni_trampoline_offset ( ) const

◆ quick_imt_conflict_trampoline_offset()

uint32_t LIEF::OAT::Header::quick_imt_conflict_trampoline_offset ( ) const

◆ quick_resolution_trampoline_offset()

uint32_t LIEF::OAT::Header::quick_resolution_trampoline_offset ( ) const

◆ quick_to_interpreter_bridge_offset()

uint32_t LIEF::OAT::Header::quick_to_interpreter_bridge_offset ( ) const

◆ set()

Header & LIEF::OAT::Header::set ( HEADER_KEYS key,
const std::string & value )

◆ values()

values_t LIEF::OAT::Header::values ( ) const

◆ version()

oat_version_t LIEF::OAT::Header::version ( ) const

OAT version.


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