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

Class to parse and create a vector of Annotations. More...

#include <encoded.hpp>

Public Member Functions

 EncodedAnnotation ()=default
 Constructor from EncodedAnnotation.
 
 ~EncodedAnnotation ()=default
 Destructor from EncodedAnnotation.
 
void parse_encoded_annotation (stream::KunaiStream *stream, Types *types, Strings *strings)
 Function to parse an encoded annotation.
 
DVMTypeget_annotation_type ()
 Get the type of the annotations.
 
std::uint64_t get_size () const
 Get size of annotations.
 
const std::vector< annotationelement_t > & get_annotations () const
 Get a constant reference to all the annotation elements.
 
std::vector< annotationelement_t > & get_annotations ()
 Get a reference to all the annotation elements.
 
AnnotationElementget_annotation_by_pos (std::uint32_t pos)
 Get an annotation element by position.
 

Detailed Description

Class to parse and create a vector of Annotations.

Member Function Documentation

◆ get_annotation_by_pos()

AnnotationElement * KUNAI::DEX::EncodedAnnotation::get_annotation_by_pos ( std::uint32_t  pos)

Get an annotation element by position.

Parameters
posposition to retrieve
Returns
pointer to AnnotationElement

◆ get_annotation_type()

DVMType * KUNAI::DEX::EncodedAnnotation::get_annotation_type ( )
inline

Get the type of the annotations.

Returns
annotations type

◆ get_annotations() [1/2]

std::vector< annotationelement_t > & KUNAI::DEX::EncodedAnnotation::get_annotations ( )
inline

Get a reference to all the annotation elements.

Returns
reference to all annotation elements

◆ get_annotations() [2/2]

const std::vector< annotationelement_t > & KUNAI::DEX::EncodedAnnotation::get_annotations ( ) const
inline

Get a constant reference to all the annotation elements.

Returns
constant reference to all annotation elements

◆ get_size()

std::uint64_t KUNAI::DEX::EncodedAnnotation::get_size ( ) const
inline

Get size of annotations.

Returns
number of annotation elements

◆ parse_encoded_annotation()

void KUNAI::DEX::EncodedAnnotation::parse_encoded_annotation ( stream::KunaiStream stream,
Types types,
Strings strings 
)

Function to parse an encoded annotation.

Parameters
streamstream with the DEX file
typestypes for parsing the encoded annotation
stringsstrings for parsing the encoded annotation

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