pub struct TypeTreeProcessor { /* private fields */ }Expand description
Main TypeTree processing facade
This struct provides a high-level interface for TypeTree processing, combining parsing, building, and serialization functionality.
Implementations§
Source§impl TypeTreeProcessor
impl TypeTreeProcessor
Sourcepub fn with_version(version: u32) -> Self
pub fn with_version(version: u32) -> Self
Create a processor with a specific Unity version
Sourcepub fn parse_from_reader(&mut self, reader: &mut BinaryReader<'_>) -> Result<()>
pub fn parse_from_reader(&mut self, reader: &mut BinaryReader<'_>) -> Result<()>
Parse TypeTree from binary data
Sourcepub fn parse_object(
&self,
reader: &mut BinaryReader<'_>,
) -> Result<IndexMap<String, UnityValue>>
pub fn parse_object( &self, reader: &mut BinaryReader<'_>, ) -> Result<IndexMap<String, UnityValue>>
Parse object data using the loaded TypeTree
Sourcepub fn serialize_object(
&self,
data: &IndexMap<String, UnityValue>,
) -> Result<Vec<u8>>
pub fn serialize_object( &self, data: &IndexMap<String, UnityValue>, ) -> Result<Vec<u8>>
Serialize object data using the loaded TypeTree
Sourcepub fn validate(&self) -> Result<ValidationReport>
pub fn validate(&self) -> Result<ValidationReport>
Validate the loaded TypeTree
Sourcepub fn statistics(&self) -> Option<TypeTreeStatistics>
pub fn statistics(&self) -> Option<TypeTreeStatistics>
Get TypeTree statistics
Sourcepub fn parsing_stats(&self) -> Option<ParsingStats>
pub fn parsing_stats(&self) -> Option<ParsingStats>
Get parsing statistics
Sourcepub fn set_version(&mut self, version: u32)
pub fn set_version(&mut self, version: u32)
Set the Unity version
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeTreeProcessor
impl RefUnwindSafe for TypeTreeProcessor
impl Send for TypeTreeProcessor
impl Sync for TypeTreeProcessor
impl Unpin for TypeTreeProcessor
impl UnwindSafe for TypeTreeProcessor
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