[−][src]Struct botw_utils::hashes::StockHashTable
A struct wrapping a hash table for stock BOTW files with a few convenience methods
Implementations
impl StockHashTable
[src]
pub fn new(platform: &Platform) -> StockHashTable
[src]
Constructs StockHashTable instance for the specified platform
Arguments
platform
- Specifies whether to use a Wii U 1.5.0 or Switch 1.6.0 hash table
pub fn get_stock_files(&self) -> impl Iterator<Item = &&str>
[src]
Iterates the files in the stock hash table by their canonical resource paths.
pub fn list_stock_files(&self) -> Vec<String>
[src]
Gets an owend list of the canonical resource paths for all files in the stock hash table.
pub fn is_file_modded<S: AsRef<str>, D: AsRef<[u8]>>(
&self,
file_name: S,
data: D,
flag_new: bool
) -> bool
[src]
&self,
file_name: S,
data: D,
flag_new: bool
) -> bool
Checks a file to see if it has been modified. Automatically decompresses yaz0 data.
Arguments
file_name
- The canonical resource name of the file to check as a string slicedata
- The binary data for the file, as a binary data slice (&[u8]
)flag_new
- Whether to count files not present in stock BOTW as modified
pub fn is_file_new<S: AsRef<str>>(&self, file_name: S) -> bool
[src]
Checks if a file is present in the unmodded game.
Arguments
file_name
- The canonical resource name of the file to check as a string slice
Trait Implementations
impl Debug for StockHashTable
[src]
impl Eq for StockHashTable
[src]
impl PartialEq<StockHashTable> for StockHashTable
[src]
fn eq(&self, other: &StockHashTable) -> bool
[src]
fn ne(&self, other: &StockHashTable) -> bool
[src]
impl StructuralEq for StockHashTable
[src]
impl StructuralPartialEq for StockHashTable
[src]
Auto Trait Implementations
impl RefUnwindSafe for StockHashTable
impl Send for StockHashTable
impl Sync for StockHashTable
impl Unpin for StockHashTable
impl UnwindSafe for StockHashTable
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,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,