WIP
This commit is contained in:
parent
bda74f55ac
commit
559ae665cf
5 changed files with 92 additions and 12 deletions
|
|
@ -90,6 +90,42 @@ impl<'a> DexFileReader<'a> {
|
|||
pub fn get_header(&self) -> &HeaderItem {
|
||||
&self.header
|
||||
}
|
||||
/// Retunr the file [`StringIdItem`] list.
|
||||
pub fn get_string_ids(&self) -> &[StringIdItem] {
|
||||
&self.string_ids
|
||||
}
|
||||
/// Retunr the file [`TypeIdItem`] list.
|
||||
pub fn get_type_ids(&self) -> &[TypeIdItem] {
|
||||
&self.type_ids
|
||||
}
|
||||
/// Retunr the file [`ProtoIdItem`] list.
|
||||
pub fn get_proto_ids(&self) -> &[ProtoIdItem] {
|
||||
&self.proto_ids
|
||||
}
|
||||
/// Retunr the file [`FieldIdItem`] list.
|
||||
pub fn get_field_ids(&self) -> &[FieldIdItem] {
|
||||
&self.field_ids
|
||||
}
|
||||
/// Retunr the file [`MethodIdItem`] list.
|
||||
pub fn get_method_ids(&self) -> &[MethodIdItem] {
|
||||
&self.method_ids
|
||||
}
|
||||
/// Retunr the file [`ClassDefItem`] list.
|
||||
pub fn get_class_defs(&self) -> &[ClassDefItem] {
|
||||
&self.class_defs
|
||||
}
|
||||
/// Retunr the file [`CallSiteIdItem`] list.
|
||||
pub fn get_call_site_ids(&self) -> &[CallSiteIdItem] {
|
||||
&self.call_site_ids
|
||||
}
|
||||
/// Retunr the file [`MethodHandleItem`] list.
|
||||
pub fn get_method_handles(&self) -> &[MethodHandleItem] {
|
||||
&self.method_handles
|
||||
}
|
||||
/// Retunr the file [`MapList`].
|
||||
pub fn get_map_list(&self) -> &MapList {
|
||||
&self.map_list
|
||||
}
|
||||
|
||||
fn sanity_check(&self) -> Result<()> {
|
||||
if self.header.magic.version != [0x30, 0x33, 0x39] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue