Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
cache.h File Reference
#include <Windows.h>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  CachedDataFile
 Structure to contain a cached data file. More...
 

Namespaces

 Blam
 Namespace surrounding all major engine components.
 
 Blam::Cache
 Namespace containing functions related to caching.
 

Macros

#define BLAM
 
#define CACHE_FOLDER   "./cache/"
 The directory where cached data should be stored. TODO: Make this a configuration setting. More...
 

Functions

std::string Blam::Cache::WriteFileToCache (void *data, int length, std::string id)
 Writes a block of data to the cache as a file. More...
 
HRESULT Blam::Cache::ReadFileFromCache (void **data, int *length, std::string id)
 Reads a file from the cache into memory. More...
 
HRESULT Blam::Cache::DeleteFileFromCache (std::string id)
 Deletes a file from the local cache storage. More...
 
void Blam::Cache::ClearCachedFiles ()
 Clears all files from the cache. More...
 

Macro Definition Documentation

◆ BLAM

#define BLAM

◆ CACHE_FOLDER

#define CACHE_FOLDER   "./cache/"

The directory where cached data should be stored. TODO: Make this a configuration setting.