Skip to main content

Resources

Trait Resources 

Source
pub trait Resources: Send + Sync {
    // Required method
    fn resource(
        &self,
        path: &RawStr,
        offset: u64,
        size: u64,
    ) -> Result<Bytes, Error>;
}
Expand description

Where a Mesh’s m_StreamData bytes come from: UnityPy’s get_resource_data(path, assets_file, offset, size) (helpers/ResourceReader.py:10-38) from the Mesh’s own file.

Required Methods§

Source

fn resource( &self, path: &RawStr, offset: u64, size: u64, ) -> Result<Bytes, Error>

The size bytes at offset of the resource path names.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§