Function prc::read_stream

source ·
pub fn read_stream<R>(reader: &mut R) -> Result<ParamStruct, Error>where
    R: Read + Seek,
Expand description

Attempts to read a param file from the given reader (requires Seek). The reader should be positioned at the header of the filetype. Returns a ParamStruct if successful, otherwise an Error.