Struct lotus_lib::cache_pair::CachePairReader
source · pub struct CachePairReader { /* private fields */ }Implementations§
source§impl CachePairReader
impl CachePairReader
pub fn get_directory_node<T: Into<PathBuf>>(&self, path: T) -> Option<Node>
pub fn get_file_node<T: Into<PathBuf>>(&self, path: T) -> Option<Node>
pub fn directories(&self) -> Vec<Node>
pub fn files(&self) -> Vec<Node>
pub fn get_data(&self, file_node: Node) -> Result<Vec<u8>>
pub fn decompress_data(&self, file_node: Node) -> Result<Vec<u8>>
Trait Implementations§
source§impl CachePair for CachePairReader
impl CachePair for CachePairReader
fn new( toc_path: PathBuf, cache_path: PathBuf, is_post_ensmallening: bool ) -> Self
fn is_post_ensmallening(&self) -> bool
fn toc_path(&self) -> PathBuf
fn cache_path(&self) -> PathBuf
fn read_toc(&self) -> Result<()>
fn unread_toc(&self)
const MAGIC_NUMBER: u64 = 409_454_158u64
const ARCHIVE_VERSION: u64 = 20u64
Auto Trait Implementations§
impl !RefUnwindSafe for CachePairReader
impl !Send for CachePairReader
impl !Sync for CachePairReader
impl Unpin for CachePairReader
impl !UnwindSafe for CachePairReader
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