[][src]Function rbx_binary::decode

pub fn decode<R: Read>(
    tree: &mut RbxTree,
    parent_id: RbxId,
    source: R
) -> Result<(), DecodeError>

Decodes source from the given buffer into the instance in the given tree.

Roblox model files can contain multiple instances at the top level. This happens in the case of places as well as Studio users choosing multiple objects when saving a model file.