add method to facilitate apk extention

This commit is contained in:
Jean-Marie Mineau 2025-03-11 15:45:29 +01:00
parent 1845c9baa8
commit 3ed5577646
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
5 changed files with 108 additions and 36 deletions

View file

@ -11,6 +11,8 @@ use std::sync::atomic::{AtomicBool, Ordering};
#[derive(Debug)]
pub struct DexFileReader<'a> {
// Ideally, this would be a Read+Seek, but Read+Seek is not thread safe, while we can
// internally instanciate multiple cursors on the same non mutable slice.
data: &'a [u8],
header: HeaderItem,
string_ids: Vec<StringIdItem>,