Skip to main content

old_tree

Function old_tree 

Source
pub fn old_tree(nodes: &[NodeSpec], format: u32, big_endian: bool) -> Vec<u8> ⓘ
Expand description

An old-format tree: each node then its child count, recursively (in pre-order). The format decides the fields, as TypeTreeNode.parse reads them: m_VariableCount (written 0) only at format 2, m_Index and m_MetaFlag except at format 3. A node’s children are the rows UnityPy’s stack rule nests directly under it (TypeTreeNode.from_list), so a level jump nests under the previous row as the blob reader would nest it.