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

Information of catch handlers. More...

#include <encoded.hpp>

Public Member Functions

 EncodedCatchHandler ()=default
 Constructor of EncodedCatchHandler.
 
 ~EncodedCatchHandler ()=default
 Destructor of EncodedCatchHandler.
 
void parse_encoded_catch_handler (stream::KunaiStream *stream, Types *types)
 Parse all the encoded type pairs.
 
bool has_explicit_typed_catches () const
 Check value of size to test if there are encodedtypepairs.
 
std::int64_t get_size () const
 Get the size of the EncodedCatchHandler.
 
std::uint64_t get_catch_all_addr () const
 Return the value from catch_all_addr.
 
const std::vector< encodedtypepair_t > & get_handlers () const
 Get a constant reference to the vector of EncodedTypePair.
 
std::vector< encodedtypepair_t > & get_handlers ()
 Get a reference to the vector of EncodedTypePair.
 
std::uint64_t get_offset () const
 Get the offset where encoded catch handler is.
 
EncodedTypePairget_handler_by_pos (std::uint64_t pos)
 

Detailed Description

Information of catch handlers.

Member Function Documentation

◆ get_catch_all_addr()

std::uint64_t KUNAI::DEX::EncodedCatchHandler::get_catch_all_addr ( ) const
inline

Return the value from catch_all_addr.

Returns
catch_all_addr value

◆ get_handlers() [1/2]

std::vector< encodedtypepair_t > & KUNAI::DEX::EncodedCatchHandler::get_handlers ( )
inline

Get a reference to the vector of EncodedTypePair.

Returns
reference to vector of EncodedTypePair

◆ get_handlers() [2/2]

const std::vector< encodedtypepair_t > & KUNAI::DEX::EncodedCatchHandler::get_handlers ( ) const
inline

Get a constant reference to the vector of EncodedTypePair.

Returns
constant reference to vector of EncodedTypePair

◆ get_offset()

std::uint64_t KUNAI::DEX::EncodedCatchHandler::get_offset ( ) const
inline

Get the offset where encoded catch handler is.

Returns
offset of encoded catch handler

◆ get_size()

std::int64_t KUNAI::DEX::EncodedCatchHandler::get_size ( ) const
inline

Get the size of the EncodedCatchHandler.

Returns
value of size, refer to size documentation to check the possible values

◆ has_explicit_typed_catches()

bool KUNAI::DEX::EncodedCatchHandler::has_explicit_typed_catches ( ) const
inline

Check value of size to test if there are encodedtypepairs.

Returns
if there are explicit typed catches

◆ parse_encoded_catch_handler()

void KUNAI::DEX::EncodedCatchHandler::parse_encoded_catch_handler ( stream::KunaiStream stream,
Types types 
)

Parse all the encoded type pairs.

Parameters
streamstream with DEX data
typestypes for the EncodedTypePair

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