Function parse_trashed_assets
Source pub fn parse_trashed_assets(
db_bytes: Vec<u8>,
) -> Result<Vec<TrashedAsset>, IosError>
Expand description
Read every currently-trashed (ZTRASHEDSTATE = 1) asset from the bytes of a
Photos.sqlite, sorted by row id.
§Errors
Returns IosError when the bytes are not a readable SQLite database, carry
no ZASSET/ZGENERICASSET table, or that table lacks ZTRASHEDSTATE.