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

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 EncodedArrayget_array () const
 in case the value is an array return it
 
EncodedArrayget_array ()
 get a reference to the array in case value is an array
 
const EncodedAnnotationget_annotation () const
 get a reference to annotation in case it is annotation
 
EncodedAnnotationget_annotation ()
 get a reference to annotation in case it is annotation
 

Detailed Description

encoded piece of (nearly) arbitrary hierarchically structured data.

Member Function Documentation

◆ get_annotation() [1/2]

EncodedAnnotation & KUNAI::DEX::EncodedValue::get_annotation ( )
inline

get a reference to annotation in case it is annotation

Returns
reference to encoded annotation

◆ get_annotation() [2/2]

const EncodedAnnotation & KUNAI::DEX::EncodedValue::get_annotation ( ) const
inline

get a reference to annotation in case it is annotation

Returns
reference to encoded annotation

◆ get_array() [1/2]

EncodedArray & KUNAI::DEX::EncodedValue::get_array ( )
inline

get a reference to the array in case value is an array

Returns
reference to encoded array

◆ get_array() [2/2]

const EncodedArray & KUNAI::DEX::EncodedValue::get_array ( ) const
inline

in case the value is an array return it

Returns
reference to encoded array

◆ get_value_type()

TYPES::value_format KUNAI::DEX::EncodedValue::get_value_type ( ) const
inline

Get the enum with the value type.

Returns
value_format of the encoded value

◆ get_values() [1/2]

std::vector< std::uint8_t > & KUNAI::DEX::EncodedValue::get_values ( )
inline

Get a reference to the values.

Returns
reference to the values

◆ get_values() [2/2]

const std::vector< std::uint8_t > & KUNAI::DEX::EncodedValue::get_values ( ) const
inline

Get a constant reference to the values.

Returns
constant reference to values

◆ parse_encoded_value()

void KUNAI::DEX::EncodedValue::parse_encoded_value ( stream::KunaiStream stream,
Types types,
Strings strings 
)

Parse the encoded value.

Parameters
streamstream to read data
typesobject with types for parsing encoded values
stringsobject with strings for parsing encoded values

◆ size_of_value()

std::uint8_t KUNAI::DEX::EncodedValue::size_of_value ( ) const
inline

Return the size of the value.

Returns
size of the value

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