Skip to main content

model_magic

Function model_magic 

Source
pub fn model_magic<I: Read + Seek>(
    input: &mut I,
) -> Result<Option<[u8; 4]>, Error>
Expand description

The 4 byte magic of a model file (“MLOD”, “ODOL” or “BMTR”), if it is one. The reader is put back to where it was.

§Errors

Returns an error if seeking or reading fails (a short read is not an error).