[−][src]Struct smash_arc::LoadedArc
Fields
magic: u64
stream_section_offset: u64
file_section_offset: u64
file_system_offset: u64
file_system_search_offset: u64
Not too sure about that one
padding: u64
uncompressed_fs: *const FileSystemHeader
fs_header: *const FileSystemHeader
region_entry: u64
Not too sure about that one
file_info_buckets: *const FileInfoBucket
file_hash_to_path_index: *const HashToIndex
file_paths: *const FilePath
file_info_indices: *const FileInfoIndex
dir_hash_to_info_index: *const HashToIndex
dir_infos: *const DirInfo
folder_offsets: *const DirectoryOffset
folder_child_hashes: *const HashToIndex
file_infos: *mut FileInfo
file_info_to_datas: *const FileInfoToFileData
file_datas: *mut FileData
unk_section: u64
stream_header: *const StreamHeader
quick_dirs: *const QuickDir
stream_hash_to_entries: *const HashToIndex
stream_entries: *const StreamEntry
stream_file_indices: *const u32
stream_datas: *const StreamData
extra_buckets: *const FileInfoBucket
extra_entries: u64
extra_folder_offsets: *const DirectoryOffset
extra_entry_vector: [u64; 3]
version: u32
extra_count: u32
loaded_file_system_search: *const LoadedSearchSection
Implementations
impl LoadedArc
[src]
pub fn open() -> BinResult<ArcFile>
[src]
pub fn from_reader<R: SeekRead + 'static>(mut reader: R) -> BinResult<ArcFile>
[src]
Trait Implementations
impl ArcLookup for LoadedArc
[src]
fn get_file_info_buckets(&self) -> &[FileInfoBucket]
[src]
Requires testing
fn get_file_hash_to_path_index(&self) -> &[HashToIndex]
[src]
Most likely incorrect
fn get_dir_hash_to_info_index(&self) -> &[HashToIndex]
[src]
fn get_dir_infos(&self) -> &[DirInfo]
[src]
fn get_file_paths(&self) -> &[FilePath]
[src]
fn get_file_info_indices(&self) -> &[FileInfoIndex]
[src]
fn get_file_infos(&self) -> &[FileInfo]
[src]
fn get_file_infos_mut(&mut self) -> &mut [FileInfo]
[src]
fn get_file_info_to_datas(&self) -> &[FileInfoToFileData]
[src]
fn get_file_datas(&self) -> &[FileData]
[src]
fn get_file_datas_mut(&mut self) -> &mut [FileData]
[src]
fn get_folder_offsets(&self) -> &[DirectoryOffset]
[src]
fn get_stream_entries(&self) -> &[StreamEntry]
[src]
fn get_stream_file_indices(&self) -> &[u32]
[src]
fn get_stream_datas(&self) -> &[StreamData]
[src]
fn get_stream_hash_to_entries(&self) -> &[HashToIndex]
[src]
fn get_quick_dirs(&self) -> &[QuickDir]
[src]
fn get_file_section_offset(&self) -> u64
[src]
fn get_stream_section_offset(&self) -> u64
[src]
fn get_shared_section_offset(&self) -> u64
[src]
fn get_file_reader<'a>(&'a self) -> Box<dyn SeekRead + 'a>
[src]
fn get_file_contents<Hash: Into<Hash40>>(
&self,
hash: Hash,
region: Region
) -> Result<Vec<u8>, LookupError>
[src]
&self,
hash: Hash,
region: Region
) -> Result<Vec<u8>, LookupError>
fn get_nonstream_file_contents<Hash: Into<Hash40>>(
&self,
hash: Hash,
region: Region
) -> Result<Vec<u8>, LookupError>
[src]
&self,
hash: Hash,
region: Region
) -> Result<Vec<u8>, LookupError>
fn get_stream_data(&self, hash: Hash40) -> Result<&StreamData, LookupError>
[src]
fn get_stream_file_contents<Hash: Into<Hash40>>(
&self,
hash: Hash
) -> Result<Vec<u8>, LookupError>
[src]
&self,
hash: Hash
) -> Result<Vec<u8>, LookupError>
fn read_stream_file_data(
&self,
file_data: &StreamData
) -> Result<Vec<u8>, LookupError>
[src]
&self,
file_data: &StreamData
) -> Result<Vec<u8>, LookupError>
fn get_shared_files(
&self,
hash: Hash40,
region: Region
) -> Result<Vec<Hash40>, LookupError>
[src]
&self,
hash: Hash40,
region: Region
) -> Result<Vec<Hash40>, LookupError>
fn get_bucket_for_hash(&self, hash: Hash40) -> &[HashToIndex]
[src]
fn get_file_path_index_from_hash(
&self,
hash: Hash40
) -> Result<u32, LookupError>
[src]
&self,
hash: Hash40
) -> Result<u32, LookupError>
fn get_file_info_from_hash(
&self,
hash: Hash40
) -> Result<&FileInfo, LookupError>
[src]
&self,
hash: Hash40
) -> Result<&FileInfo, LookupError>
fn get_dir_info_from_hash<Hash: Into<Hash40>>(
&self,
hash: Hash
) -> Result<&DirInfo, LookupError>
[src]
&self,
hash: Hash
) -> Result<&DirInfo, LookupError>
fn get_stream_listing(&self, dir: &str) -> Result<&[StreamEntry], LookupError>
[src]
fn get_file_info_from_path_index(&self, path_index: u32) -> &FileInfo
[src]
fn get_file_info_from_path_index_mut(
&mut self,
path_index: u32
) -> &mut FileInfo
[src]
&mut self,
path_index: u32
) -> &mut FileInfo
fn get_file_in_folder(
&self,
file_info: &FileInfo,
region: Region
) -> FileInfoToFileData
[src]
&self,
file_info: &FileInfo,
region: Region
) -> FileInfoToFileData
fn get_file_data_from_hash(
&self,
hash: Hash40,
region: Region
) -> Result<&FileData, LookupError>
[src]
&self,
hash: Hash40,
region: Region
) -> Result<&FileData, LookupError>
fn get_file_data(&self, file_info: &FileInfo, region: Region) -> &FileData
[src]
fn get_file_data_mut(
&mut self,
file_info: &FileInfo,
region: Region
) -> &mut FileData
[src]
&mut self,
file_info: &FileInfo,
region: Region
) -> &mut FileData
fn get_folder_offset(&self, file_info: &FileInfo, region: Region) -> u64
[src]
fn read_file_data(
&self,
file_data: &FileData,
folder_offset: u64
) -> Result<Vec<u8>, LookupError>
[src]
&self,
file_data: &FileData,
folder_offset: u64
) -> Result<Vec<u8>, LookupError>
fn get_file_offset_from_hash(
&self,
hash: Hash40,
region: Region
) -> Result<u64, LookupError>
[src]
&self,
hash: Hash40,
region: Region
) -> Result<u64, LookupError>
fn get_file_metadata<Hash: Into<Hash40>>(
&self,
hash: Hash,
region: Region
) -> Result<FileMetadata, LookupError>
[src]
&self,
hash: Hash,
region: Region
) -> Result<FileMetadata, LookupError>
impl Debug for LoadedArc
[src]
Auto Trait Implementations
impl RefUnwindSafe for LoadedArc
[src]
impl !Send for LoadedArc
[src]
impl !Sync for LoadedArc
[src]
impl Unpin for LoadedArc
[src]
impl UnwindSafe for LoadedArc
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,