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::LinearSweepDisassembler Class Reference

LinearSweepDisassembler is one of the DEX disassembly algorithms implemented by Kunai, this algorithm will go from the first byte of a buffer to the last one disassemblying all the found instructions. More...

#include <linear_sweep_disassembler.hpp>

Public Member Functions

void set_internal_disassembler (Disassembler *disassembler)
 
void disassembly (std::vector< std::uint8_t > &buffer_bytes, std::vector< std::unique_ptr< Instruction > > &instructions)
 This function implements the algorithm of disassembly of linear sweep, the function receives a buffer of bytes and the buffer is traversed in a linear way disassembling each byte.
 

Detailed Description

LinearSweepDisassembler is one of the DEX disassembly algorithms implemented by Kunai, this algorithm will go from the first byte of a buffer to the last one disassemblying all the found instructions.

Member Function Documentation

◆ disassembly()

void KUNAI::DEX::LinearSweepDisassembler::disassembly ( std::vector< std::uint8_t > &  buffer_bytes,
std::vector< std::unique_ptr< Instruction > > &  instructions 
)

This function implements the algorithm of disassembly of linear sweep, the function receives a buffer of bytes and the buffer is traversed in a linear way disassembling each byte.

Parameters
buffer_bytesbytes to disassembly
instructionsvector where to store the instructions

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