pub struct BundleProcessor { /* private fields */ }Expand description
Main bundle processing facade
This struct provides a high-level interface for bundle processing, combining parsing, loading, and resource management functionality.
Implementations§
Source§impl BundleProcessor
impl BundleProcessor
Sourcepub fn new() -> BundleProcessor
pub fn new() -> BundleProcessor
Create a new bundle processor
Sourcepub fn with_options(options: BundleLoadOptions) -> BundleProcessor
pub fn with_options(options: BundleLoadOptions) -> BundleProcessor
Create a new bundle processor with options
Sourcepub fn process_file<P>(&mut self, path: P) -> Result<&AssetBundle, BinaryError>
pub fn process_file<P>(&mut self, path: P) -> Result<&AssetBundle, BinaryError>
Load and process a bundle from file
Sourcepub fn process_memory(
&mut self,
name: String,
data: Vec<u8>,
) -> Result<&AssetBundle, BinaryError>
pub fn process_memory( &mut self, name: String, data: Vec<u8>, ) -> Result<&AssetBundle, BinaryError>
Load and process a bundle from memory
Sourcepub fn loader(&self) -> &BundleLoader
pub fn loader(&self) -> &BundleLoader
Get the underlying loader
Sourcepub fn loader_mut(&mut self) -> &mut BundleLoader
pub fn loader_mut(&mut self) -> &mut BundleLoader
Get mutable access to the underlying loader
Sourcepub fn extract_all_assets(
&self,
bundle_name: &str,
) -> Option<Vec<&SerializedFile>>
pub fn extract_all_assets( &self, bundle_name: &str, ) -> Option<Vec<&SerializedFile>>
Extract all assets from a bundle
Sourcepub fn extract_assets_by_type(
&self,
bundle_name: &str,
_type_id: i32,
) -> Option<Vec<&SerializedFile>>
pub fn extract_assets_by_type( &self, bundle_name: &str, _type_id: i32, ) -> Option<Vec<&SerializedFile>>
Extract assets by type
Sourcepub fn get_bundle_info(&self, bundle_name: &str) -> Option<BundleInfo>
pub fn get_bundle_info(&self, bundle_name: &str) -> Option<BundleInfo>
Get bundle information
Sourcepub fn validate_all(&self) -> Result<(), BinaryError>
pub fn validate_all(&self) -> Result<(), BinaryError>
Validate all loaded bundles
Sourcepub fn statistics(&self) -> LoaderStatistics
pub fn statistics(&self) -> LoaderStatistics
Get processing statistics
Trait Implementations§
Source§impl Default for BundleProcessor
impl Default for BundleProcessor
Source§fn default() -> BundleProcessor
fn default() -> BundleProcessor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BundleProcessor
impl !RefUnwindSafe for BundleProcessor
impl Send for BundleProcessor
impl Sync for BundleProcessor
impl Unpin for BundleProcessor
impl !UnwindSafe for BundleProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().