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

All classes from the DEX files. More...

#include <classes.hpp>

Public Member Functions

 Classes ()=default
 Constructor from Classes.
 
 ~Classes ()=default
 Destructor from Classes.
 
void parse_classes (stream::KunaiStream *stream, std::uint32_t number_of_classes, std::uint32_t offset, Strings *strings, Types *types, Fields *fields, Methods *methods)
 Parse all the classes from the DEX files.
 
std::uint32_t get_number_of_classes () const
 Get the number of the classes from the DEX file.
 
const std::vector< classdef_t > & get_classdefs () const
 Get a constant reference to all the class defs from the DEX.
 
std::vector< classdef_t > & get_classdefs ()
 Get a reference to all the class defs from the DEX.
 

Friends

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

Detailed Description

All classes from the DEX files.

Member Function Documentation

◆ get_classdefs() [1/2]

std::vector< classdef_t > & KUNAI::DEX::Classes::get_classdefs ( )
inline

Get a reference to all the class defs from the DEX.

Returns
reference to vector with class_defs

◆ get_classdefs() [2/2]

const std::vector< classdef_t > & KUNAI::DEX::Classes::get_classdefs ( ) const
inline

Get a constant reference to all the class defs from the DEX.

Returns
constant reference to vector with class_defs

◆ get_number_of_classes()

std::uint32_t KUNAI::DEX::Classes::get_number_of_classes ( ) const
inline

Get the number of the classes from the DEX file.

Returns
number of classes of DEX file

◆ parse_classes()

void KUNAI::DEX::Classes::parse_classes ( stream::KunaiStream stream,
std::uint32_t  number_of_classes,
std::uint32_t  offset,
Strings strings,
Types types,
Fields fields,
Methods methods 
)

Parse all the classes from the DEX files.

Parameters
streamstream with the DEX file
number_of_classesnumber of classes from the DEX
offsetoffset to parse the classes
stringsstrings from the DEX file
typestypes from the DEX file
fieldsfields from the DEX file
methodsmethods from the DEX file

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