KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
|
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. | |
DVMType * | get_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. | |
AnnotationElement * | get_annotation_by_pos (std::uint32_t pos) |
Get an annotation element by position. | |
Class to parse and create a vector of Annotations.
AnnotationElement * KUNAI::DEX::EncodedAnnotation::get_annotation_by_pos | ( | std::uint32_t | pos | ) |
Get an annotation element by position.
pos | position to retrieve |
|
inline |
Get the type of the annotations.
|
inline |
Get a reference to all the annotation elements.
|
inline |
Get a constant reference to all the annotation elements.
|
inline |
Get size of annotations.
void KUNAI::DEX::EncodedAnnotation::parse_encoded_annotation | ( | stream::KunaiStream * | stream, |
Types * | types, | ||
Strings * | strings | ||
) |
Function to parse an encoded annotation.
stream | stream with the DEX file |
types | types for parsing the encoded annotation |
strings | strings for parsing the encoded annotation |