Struct uasset::PackageFileSummary [−][src]
pub struct PackageFileSummary {}Show fields
pub file_version_ue4: i32, pub file_version_licensee_ue4: i32, pub total_header_size: i32, pub folder_name: String, pub package_flags: u32, pub names: Vec<String>, pub localization_id: Option<String>, pub gatherable_text_data_count: i32, pub export_count: i32, pub imports: Vec<ClassImport>, pub string_reference_count: i32, pub thumbnail_table_offset: i32, pub compression_flags: u32, pub package_source: u32, pub additional_packages_to_cook: Vec<String>, pub texture_allocations: Option<i32>, // some fields omitted
Expand description
A table of contents for a uasset loaded from disk, containing all the shared package summary information.
This roughly maps to FPackageFileSummary
in Engine/Source/Runtime/CoreUObject/Public/UObject/PackageFileSummary.h, except we
load some of the indirectly referenced data (i.e. names, imports, exports).
Fields
file_version_ue4: i32
file_version_licensee_ue4: i32
total_header_size: i32
folder_name: String
package_flags: u32
names: Vec<String>
localization_id: Option<String>
gatherable_text_data_count: i32
export_count: i32
imports: Vec<ClassImport>
string_reference_count: i32
thumbnail_table_offset: i32
compression_flags: u32
package_source: u32
additional_packages_to_cook: Vec<String>
texture_allocations: Option<i32>
Implementations
impl PackageFileSummary
[src]
impl PackageFileSummary
[src]pub fn new<R>(reader: R) -> Result<Self> where
R: Seek + Read,
[src]
pub fn new<R>(reader: R) -> Result<Self> where
R: Seek + Read,
[src]Parse a PackageFileSummary from the given reader, assuming a little endian uasset
pub fn find_name(&self, find_name: &str) -> Option<NameReference>
[src]
pub fn find_name(&self, find_name: &str) -> Option<NameReference>
[src]Attempt to look up find_name
in the name table serialized in PackageFileSummary::names
, will return None
if the name does not exist. Names are case insensitive.
pub fn resolve_name<'a>(
&'a self,
name_reference: &NameReference
) -> Result<Cow<'a, str>, InvalidNameIndexError>
[src]
pub fn resolve_name<'a>(
&'a self,
name_reference: &NameReference
) -> Result<Cow<'a, str>, InvalidNameIndexError>
[src]Look up the string representation for a given [NameReference
].
pub fn package_import_iter<'a>(&'a self) -> ImportIterator<'a>ⓘNotable traits for ImportIterator<'a>
impl<'a> Iterator for ImportIterator<'a> type Item = String;
[src]
pub fn package_import_iter<'a>(&'a self) -> ImportIterator<'a>ⓘNotable traits for ImportIterator<'a>
impl<'a> Iterator for ImportIterator<'a> type Item = String;
[src]Create an iterator over the names of just the packages imported by this asset (i.e. its dependencies).