Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATStreamRAM::FromFile
CATResult CATStreamRAM::FromFile ( const CATWChar pathName  ) 

FromFile() loads a file into the RAM stream. This is analogous to calling Open() on a file stream, only your read/writes will be a hell of a lot faster.

As in Open(), please close prior to opening a new one, and close before destroying.

Parameters:
pathName - path of file to open
Returns:
CATResult - CAT_SUCCESS on success.

Definition at line 453 of file CATStreamRAM.cpp.

References CAT_ERR_OUT_OF_MEMORY, CAT_SUCCESS, CATASSERT, CATFAILED, CATRESULT, CATStreamFile::Close(), fCacheSize, fRamCache, fSize, CATStreamFile::Open(), CATStreamFile::Read(), CATStream::READ_ONLY, and CATStreamFile::Size().


Generated on Mon Feb 11 04:10:58 2008 for Game Accessibility Suite by doxygen 1.5.4