Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATStreamRAM::ToFile
CATResult CATStreamRAM::ToFile ( const CATWChar pathName,
bool  overwrite = true 
)

ToFile() saves the stream to a file.

Parameters:
pathName - path of file to save
overwrite - if false, will return an error if the file already exists.
Returns:
CATResult - CAT_SUCCESS on success.

Definition at line 514 of file CATStreamRAM.cpp.

References CAT_ERR_FILE_ALREADY_EXISTS, CAT_ERR_FILE_NOT_OPEN, CAT_SUCCESS, CATASSERT, CATFAILED, CATRESULT, CATSUCCEEDED, CATStreamFile::Close(), fRamCache, fSize, CATStreamFile::Open(), CATStream::READ_ONLY, CATStream::READ_WRITE_CREATE_TRUNC, and CATStreamFile::Write().


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