pub struct PlatformSymbols { /* private fields */ }Implementations§
Source§impl PlatformSymbols
impl PlatformSymbols
Sourcepub fn from_metadata(
xmls: &[&[u8]],
constants: &HashMap<(String, String), i64>,
) -> Self
pub fn from_metadata( xmls: &[&[u8]], constants: &HashMap<(String, String), i64>, ) -> Self
Build from annotations.xml byte slices plus the resolved
constants ((class, field) → value) off android.jar.
Sourcepub fn domain_count(&self) -> usize
pub fn domain_count(&self) -> usize
Number of methods carrying at least one constant domain.
Sourcepub fn serialize(&self) -> Vec<u8> ⓘ
pub fn serialize(&self) -> Vec<u8> ⓘ
Compact self-contained serialization (count-prefixed strings, little-endian). The derived domain table is all the pass needs — the android.jar constants map was only build input.
Sourcepub fn from_text(text: &[u8]) -> Option<Self>
pub fn from_text(text: &[u8]) -> Option<Self>
Parse the plaintext format (one domain per line):
cls method desc param member,member… where member is
owner.field=value with dots. - marks an unmapped parameter.
This is the repo-maintained form (build.rs compresses it).
pub fn deserialize(bytes: &[u8]) -> Option<Self>
Trait Implementations§
Source§impl Debug for PlatformSymbols
impl Debug for PlatformSymbols
Auto Trait Implementations§
impl Freeze for PlatformSymbols
impl RefUnwindSafe for PlatformSymbols
impl Send for PlatformSymbols
impl Sync for PlatformSymbols
impl Unpin for PlatformSymbols
impl UnsafeUnpin for PlatformSymbols
impl UnwindSafe for PlatformSymbols
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more