Function libxivdat::dat_type::get_default_max_size_for_type [−][src]
pub fn get_default_max_size_for_type(file_type: &DATType) -> Option<u32>
Expand description
Gets the default maximum content size of a DAT file for a given type.
Returns None
if the file is of unknown type or has no standard size.
Examples
use libxivdat::dat_type::{DATType, get_default_max_size_for_type}; let max_size = get_default_max_size_for_type(&DATType::Macro).unwrap();