Function Blam::Cache::WriteFileToCache

Function Documentation

std::string Blam::Cache::WriteFileToCache(void *data, int length, std::string id)

Writes a block of data to the cache as a file.

Return

- The path of the cached file

Parameters
  • data: - The data to put in the file

  • length: - The size of the data in bytes

  • id: - The ID of the cached data, used to retrieve the file later on