Skip to main content

read_utw_from_bytes

Function read_utw_from_bytes 

Source
pub fn read_utw_from_bytes(bytes: &[u8]) -> Result<Utw, UtwError>
Expand description

Reads typed UTW data directly from bytes.

ยงErrors

UtwError::Gff when bytes are not a readable GFF, and UtwError::UnsupportedFileType when they are a GFF of some other format, carrying the fourcc that was found.