pub struct Cache { /* private fields */ }Implementations§
source§impl Cache
impl Cache
pub fn open(input_path: &str) -> Result<Cache>
sourcepub fn read(
&self,
archive: u16,
group: u16,
file: u16,
xtea_keys: Option<[i32; 4]>
) -> Vec<u8>
pub fn read( &self, archive: u16, group: u16, file: u16, xtea_keys: Option<[i32; 4]> ) -> Vec<u8>
Read a file from the cache
Arguments
archive- The archive to read fromgroup- The group to read fromfile- The file to readxtea_keys- The XTEA keys to use for decryption. If None, the file will not be decrypted