pub struct CachedEntry {
pub name: String,
pub data: DexBytes,
/* private fields */
}Expand description
A cached inflated entry.
Fields§
§name: String§data: DexBytesImplementations§
Source§impl CachedEntry
impl CachedEntry
Sourcepub fn logical(&self) -> &[LogicalDex]
pub fn logical(&self) -> &[LogicalDex]
Logical DEX files of this entry (one, unless it is a 041 container).
Sourcepub fn resident_bytes(&self) -> usize
pub fn resident_bytes(&self) -> usize
Bytes this entry keeps resident once searched: the inflated entry plus,
for a 041 container, one full-container copy per further logical DEX
(what logical() materialises). Computed from the headers alone so
accounting does not itself trigger those copies.
Sourcepub fn state_bytes(&self) -> usize
pub fn state_bytes(&self) -> usize
Bytes of the locator tables built (on the heap) or mapped (from L2) so far for this entry’s logical DEX files (0 before the first search).
Sourcepub fn charged_bytes(&self) -> usize
pub fn charged_bytes(&self) -> usize
What the in-memory cache charges for this entry: heap bytes in full
(the inflated entry when not mapped, a container’s logical copies,
tables built on the heap) and file-backed bytes (the entry mapped from
L1 or the APK, tables mapped from L2) at 1/MAPPED_CHARGE_DIVISOR.