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

Class that specify the information from a try specifies address, number of instructions, and offset of handlers. More...

#include <encoded.hpp>

Classes

struct  try_item_struct_t
 Structure with the information from a Try code. More...
 

Public Member Functions

 TryItem ()=default
 Constructor of TryItem.
 
 ~TryItem ()=default
 Destructor of TryItem.
 
void parse_try_item (stream::KunaiStream *stream)
 Parse a try_item_struct_t from stream.
 
std::uint32_t get_start_addr () const
 Get the start address of the try block.
 
std::uint16_t get_insn_count () const
 Get the number of instruction counts from the try.
 
std::uint16_t get_handler_off () const
 Get offset of handler from try.
 

Detailed Description

Class that specify the information from a try specifies address, number of instructions, and offset of handlers.

Member Function Documentation

◆ get_handler_off()

std::uint16_t KUNAI::DEX::TryItem::get_handler_off ( ) const
inline

Get offset of handler from try.

Returns
handler offset

◆ get_insn_count()

std::uint16_t KUNAI::DEX::TryItem::get_insn_count ( ) const
inline

Get the number of instruction counts from the try.

Returns
instruction count from try block

◆ get_start_addr()

std::uint32_t KUNAI::DEX::TryItem::get_start_addr ( ) const
inline

Get the start address of the try block.

Returns
start address of try block

◆ parse_try_item()

void KUNAI::DEX::TryItem::parse_try_item ( stream::KunaiStream stream)

Parse a try_item_struct_t from stream.

Parameters
streamDEX to read try_item_struct_t

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