KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
|
encoded piece of (nearly) arbitrary hierarchically structured data. More...
#include <encoded.hpp>
Public Member Functions | |
EncodedValue ()=default | |
Constructor of EncodedValue. | |
~EncodedValue ()=default | |
Destructor of EncodedValue. | |
void | parse_encoded_value (stream::KunaiStream *stream, Types *types, Strings *strings) |
Parse the encoded value. | |
TYPES::value_format | get_value_type () const |
Get the enum with the value type. | |
std::uint8_t | size_of_value () const |
Return the size of the value. | |
const std::vector< std::uint8_t > & | get_values () const |
Get a constant reference to the values. | |
std::vector< std::uint8_t > & | get_values () |
Get a reference to the values. | |
const EncodedArray & | get_array () const |
in case the value is an array return it | |
EncodedArray & | get_array () |
get a reference to the array in case value is an array | |
const EncodedAnnotation & | get_annotation () const |
get a reference to annotation in case it is annotation | |
EncodedAnnotation & | get_annotation () |
get a reference to annotation in case it is annotation | |
encoded piece of (nearly) arbitrary hierarchically structured data.
|
inline |
get a reference to annotation in case it is annotation
|
inline |
get a reference to annotation in case it is annotation
|
inline |
get a reference to the array in case value is an array
|
inline |
in case the value is an array return it
|
inline |
Get the enum with the value type.
|
inline |
Get a reference to the values.
|
inline |
Get a constant reference to the values.
void KUNAI::DEX::EncodedValue::parse_encoded_value | ( | stream::KunaiStream * | stream, |
Types * | types, | ||
Strings * | strings | ||
) |
Parse the encoded value.
stream | stream to read data |
types | object with types for parsing encoded values |
strings | object with strings for parsing encoded values |
|
inline |
Return the size of the value.