Class to manage all the ProtoID from the DEX file.
More...
#include <protos.hpp>
|
| Protos ()=default |
| Default constructor of protos.
|
|
| ~Protos ()=default |
| Default destructor of protos.
|
|
void | parse_protos (stream::KunaiStream *stream, std::uint32_t number_of_protos, std::uint32_t offset, Strings *strings, Types *types) |
| Parse all the ProtoIDs from the file.
|
|
const std::vector< protoid_t > & | get_proto_ids () const |
| Return a constant reference to proto_ids vector.
|
|
std::vector< protoid_t > & | get_proto_ids () |
| Return a reference to proto_ids vector.
|
|
std::uint32_t | get_number_of_protos () const |
| get the number of proto_ids
|
|
ProtoID * | get_proto_by_order (std::uint32_t pos) |
| Given a position in the vector of protos, return a ProtoID.
|
|
void | to_xml (std::ofstream &xml_file) |
| Dump the proto_ids to an XML file.
|
|
|
std::ostream & | operator<< (std::ostream &os, const Protos &entry) |
| Return a pretty printed version of the proto_ids.
|
|
Class to manage all the ProtoID from the DEX file.
◆ get_number_of_protos()
std::uint32_t KUNAI::DEX::Protos::get_number_of_protos |
( |
| ) |
const |
|
inline |
get the number of proto_ids
- Returns
- number of proto_ids
◆ get_proto_by_order()
ProtoID * KUNAI::DEX::Protos::get_proto_by_order |
( |
std::uint32_t |
pos | ) |
|
Given a position in the vector of protos, return a ProtoID.
- Parameters
-
- Returns
- pointer to a ProtoID*
◆ get_proto_ids() [1/2]
std::vector< protoid_t > & KUNAI::DEX::Protos::get_proto_ids |
( |
| ) |
|
|
inline |
Return a reference to proto_ids vector.
- Returns
- reference to proto_ids vector
◆ get_proto_ids() [2/2]
const std::vector< protoid_t > & KUNAI::DEX::Protos::get_proto_ids |
( |
| ) |
const |
|
inline |
Return a constant reference to proto_ids vector.
- Returns
- const reference to the proto_id vector
◆ parse_protos()
void KUNAI::DEX::Protos::parse_protos |
( |
stream::KunaiStream * |
stream, |
|
|
std::uint32_t |
number_of_protos, |
|
|
std::uint32_t |
offset, |
|
|
Strings * |
strings, |
|
|
Types * |
types |
|
) |
| |
Parse all the ProtoIDs from the file.
- Parameters
-
stream | stream with dex file |
number_of_protos | number of protos to read |
offset | offset where to read the protos |
strings | object with all the strings from the dex |
types | object with all the types from the dex |
◆ to_xml()
void KUNAI::DEX::Protos::to_xml |
( |
std::ofstream & |
xml_file | ) |
|
Dump the proto_ids to an XML file.
- Parameters
-
xml_file | file where to dump the data |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Protos & |
entry |
|
) |
| |
|
friend |
Return a pretty printed version of the proto_ids.
- Parameters
-
os | stream where to print it |
entry | entry to print |
- Returns
- stream with printed data
The documentation for this class was generated from the following file: