KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
Loading...
Searching...
No Matches
Classes | Public Member Functions | Friends | List of all members
KUNAI::DEX::Header Class Reference

Classes

struct  dexheader_t
 Structure with the definition of the DEX header all these values are later used for parsing the other headers from DEX. More...
 

Public Member Functions

 Header ()=default
 DEX header constructor.
 
void parse_headers (stream::KunaiStream *stream)
 Internal function for parsing the dex headers.
 
 Header (Header &header)
 Copy constructor of dex header.
 
 ~Header ()=default
 destructor of DEX header
 
const dexheader_tget_dex_header_const () const
 Obtain a constant reference of the dex header struct if no value will be modified, use this function, it will be faster :)
 
dexheader_tget_dex_header ()
 Obtain a reference of the dex header struct just in case in the future DEX modification is allowed.
 
std::uint64_t get_dex_header_size () const
 Obtain the size of the dex header structure.
 
void to_xml (std::ofstream &fos)
 Dump the content of the DEX header to an XML file.
 

Friends

std::ostream & operator<< (std::ostream &os, const Header &entry)
 Pretty printer for the operator << of the DEX header.
 

Constructor & Destructor Documentation

◆ Header()

KUNAI::DEX::Header::Header ( Header header)
inline

Copy constructor of dex header.

Parameters
headerreference to the header where to copy from

Member Function Documentation

◆ get_dex_header()

dexheader_t & KUNAI::DEX::Header::get_dex_header ( )
inline

Obtain a reference of the dex header struct just in case in the future DEX modification is allowed.

Returns
reference to header structure

◆ get_dex_header_const()

const dexheader_t & KUNAI::DEX::Header::get_dex_header_const ( ) const
inline

Obtain a constant reference of the dex header struct if no value will be modified, use this function, it will be faster :)

Returns
const reference to header structure

◆ get_dex_header_size()

std::uint64_t KUNAI::DEX::Header::get_dex_header_size ( ) const
inline

Obtain the size of the dex header structure.

Returns

◆ parse_headers()

void KUNAI::DEX::Header::parse_headers ( stream::KunaiStream stream)

Internal function for parsing the dex headers.

Parameters
streamstream with the dex file

◆ to_xml()

void KUNAI::DEX::Header::to_xml ( std::ofstream &  fos)

Dump the content of the DEX header to an XML file.

Parameters
fosfile where to store the string

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Header entry 
)
friend

Pretty printer for the operator << of the DEX header.

Parameters
osoutput stream to print the dex header
entryentry to print
Returns
received output stream

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