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.
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().
|