Public Member Functions | |
Cache (SherlockEngine *_vm) | |
bool | isCached (const Common::Path &filename) const |
void | load (const Common::Path &name) |
void | load (const Common::Path &name, Common::SeekableReadStream &stream) |
Common::SeekableReadStream * | get (const Common::Path &filename) const |
bool Sherlock::Cache::isCached | ( | const Common::Path & | filename | ) | const |
Returns true if a given file is currently being cached
void Sherlock::Cache::load | ( | const Common::Path & | name | ) |
Loads a file into the cache if it's not already present, and returns it. If the file is LZW compressed, automatically decompresses it and loads the uncompressed version into memory
void Sherlock::Cache::load | ( | const Common::Path & | name, |
Common::SeekableReadStream & | stream | ||
) |
Load a cache entry based on a passed stream
Common::SeekableReadStream* Sherlock::Cache::get | ( | const Common::Path & | filename | ) | const |
Get a file from the cache