[][src]Struct fs3ds::IVFCReader

pub struct IVFCReader<T: Read + Seek> {
    pub file: Arc<Mutex<T>>,
    pub dir_metadata_part_offset: u32,
    pub file_metadata_part_offset: u32,
    pub first_dir_metadata: DirectoryMetadata,
    pub file_data_offset: u32,
}

Fields

file: Arc<Mutex<T>>dir_metadata_part_offset: u32file_metadata_part_offset: u32first_dir_metadata: DirectoryMetadatafile_data_offset: u32

Methods

impl<T: Read + Seek> IVFCReader<T>[src]

pub fn new(file: T) -> Result<IVFCReader<T>, IVFCError>[src]

pub fn get_child(
    &self,
    dir: &DirectoryMetadata,
    path: &str
) -> Result<DirectoryOrFile, IVFCError>
[src]

Return a child by it's name. It may either be a folder or a file

pub fn list_file_child(
    &self,
    dir: &DirectoryMetadata,
    childs: &mut Vec<String>
) -> Result<(), IVFCError>
[src]

pub fn list_dir_child(
    &self,
    dir: &DirectoryMetadata,
    childs: &mut Vec<String>
) -> Result<(), IVFCError>
[src]

pub fn list_child(
    &self,
    dir: &DirectoryMetadata
) -> Result<Vec<String>, IVFCError>
[src]

pub fn get_file_real_offset(&self, file: &FileMetadata) -> u64[src]

Trait Implementations

impl<T: Debug + Read + Seek> Debug for IVFCReader<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for IVFCReader<T>

impl<T> Send for IVFCReader<T> where
    T: Send

impl<T> Sync for IVFCReader<T> where
    T: Send

impl<T> Unpin for IVFCReader<T>

impl<T> UnwindSafe for IVFCReader<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.