ScummVM API documentation
Sherlock::Cache Class Reference

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::SeekableReadStreamget (const Common::Path &filename) const
 

Member Function Documentation

◆ isCached()

bool Sherlock::Cache::isCached ( const Common::Path filename) const

Returns true if a given file is currently being cached

◆ load() [1/2]

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

◆ load() [2/2]

void Sherlock::Cache::load ( const Common::Path name,
Common::SeekableReadStream stream 
)

Load a cache entry based on a passed stream

◆ get()

Common::SeekableReadStream* Sherlock::Cache::get ( const Common::Path filename) const

Get a file from the cache


The documentation for this class was generated from the following file: