ScummVM API documentation
ICB::res_man Class Reference

Public Member Functions

 res_man (uint32 memory_tot)
 
 res_man (uint8 *base, uint32 size)
 
void Construct (uint8 *base, uint32 size, mem *memList, mem_offset *memOffsets, uint32 nMemBlocks)
 
void AddMemOffset (uint32 total_hash, int32 search)
 
int32 FindMemSearch (uint32 total_hash)
 
int32 FindMemOffset (uint32 total_hash)
 
void Reset ()
 
uint8 * Get_memory_base ()
 
uint32 Get_memory_size ()
 
void Set_auto_timeframe_advance ()
 
void Set_to_no_defrag ()
 
int16 find_oldest_file ()
 
void Garbage_removal ()
 
void Res_open_cluster (const char *cluster_url, uint32 &cluster_hash, int32 size=-1)
 
void Res_open_mini_cluster (const char *cluster_url, uint32 &cluster_hash, const char *fake_cluster_url, uint32 &fake_cluster_hash)
 
uint8 * Res_open (const char *url, uint32 &url_hash, const char *cluster_url, uint32 &cluster_hash, int32 compressed=0, int32 *ret_len=NULL)
 
uint8 * Res_alloc (uint32 url_hash, const char *cluster, uint32 cluster_hash, uint32 length)
 
void Res_purge (const char *url, uint32 url_hash, const char *cluster, uint32 cluster_hash, uint32 fatal=1)
 
void Res_purge_all ()
 
uint32 Fetch_size (const char *url, uint32 url_hash, const char *cluster_url, uint32 cluster_hash)
 
void Advance_time_stamp ()
 
uint32 Check_file_size (const char *url, uint32 url_hash, const char *cluster_url, uint32 cluster_hash)
 
bool8 Test_file (const char *url)
 
bool8 Test_file (const char *url, uint32 url_hash, const char *cluster_url, uint32 cluster_hash)
 
uint32 Fetch_files_open ()
 
uint32 Fetch_total_pool_size ()
 
uint32 Fetch_free_memory ()
 
uint32 Fetch_mem_used ()
 
memFetch_mem_list ()
 
uint32 Fetch_max_mem_blocks ()
 
uint32 Fetch_old_memory (int32 number_of_cycles)
 
void Defrag ()
 
void Id (int32 newId)
 
int32 Id ()
 

Public Attributes

int32 amount_of_defrags
 

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