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: i32file_version_licensee_ue4: i32total_header_size: i32folder_name: Stringpackage_flags: u32names: Vec<String>localization_id: Option<String>gatherable_text_data_count: i32export_count: i32imports: Vec<ClassImport>string_reference_count: i32thumbnail_table_offset: i32compression_flags: u32package_source: u32additional_packages_to_cook: Vec<String>texture_allocations: Option<i32>

Implementations

impl PackageFileSummary[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]

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]

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]

Create an iterator over the names of just the packages imported by this asset (i.e. its dependencies).

Trait Implementations

impl Debug for PackageFileSummary[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.