[][src]Struct botw_utils::hashes::StockHashTable

pub struct StockHashTable { /* fields omitted */ }

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]

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 slice
  • data - 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]

impl StructuralEq for StockHashTable[src]

impl StructuralPartialEq for StockHashTable[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,