[][src]Struct smash_arc::ArcFile

pub struct ArcFile {
    pub stream_section_offset: u64,
    pub file_section_offset: u64,
    pub shared_section_offset: u64,
    pub file_system: FileSystem,
    pub patch_section: u64,
    pub reader: Mutex<Box<dyn SeekRead>>,
    pub dirs: HashMap<Hash40, Vec<FileNode>>,
}

A struct representing the data.arc file

Fields

stream_section_offset: u64file_section_offset: u64shared_section_offset: u64file_system: FileSystempatch_section: u64reader: Mutex<Box<dyn SeekRead>>dirs: HashMap<Hash40, Vec<FileNode>>

Implementations

impl ArcFile[src]

pub fn open<P: AsRef<Path>>(path: P) -> BinResult<Self>[src]

pub fn open_over_network<Addr: ToSocketAddrs>(ip: Addr) -> BinResult<Self>[src]

pub fn from_reader<R: SeekRead + 'static>(mut reader: R) -> BinResult<Self>[src]

pub fn get_dir_listing<Hash: Into<Hash40>>(
    &self,
    hash: Hash
) -> Option<&[FileNode]>
[src]

Trait Implementations

impl ArcLookup for ArcFile[src]

impl BinRead for ArcFile[src]

type Args = ()

The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more

Auto Trait Implementations

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.