ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <res_man.h>

Collaboration diagram for ICB::res_man:

List of all members.

Public Member Functions

 res_man ()
 res_man (uint32 memory_tot, uint32 threadFlag)
 res_man (uint8 *base, uint32 size)
void Construct (uint8 *base, uint32 size, mem *memList, mem_offset *memOffsets, uint32 nMemBlocks)
 ~res_man ()
void AddMemOffset (uint32 total_hash, int32 search)
int32 FindMemSearch (uint32 total_hash)
int32 FindMemOffset (uint32 total_hash)
void Reset ()
uint8Get_memory_base ()
uint32 Get_memory_size ()
void Set_auto_timeframe_advance ()
void Set_to_no_defrag ()
int32 async_checkArray ()
void async_flush ()
void async_addFile (const int8 *fn, uint8 *p, int32 size, int32 zipped, int32 memListNo)
void RegisterAsync (const int32 n)
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)
uint8Res_open (const char *url, uint32 &url_hash, const char *cluster_url, uint32 &cluster_hash, int compressed=0, int *ret_len=NULL)
uint8Res_async_open (const char *url, uint32 &url_hash, const char *cluster_url, uint32 &cluster_hash, int compressed=0)
uint8Res_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 (int number_of_cycles)
void Defrag ()
void Id (int newId)
int Id ()

Public Attributes

int amount_of_defrags
async_PacketType async_data
int32 async_loading
int32 async_done
Common::MutexhResManMutex
Common::MutexhRunMutex

Private Member Functions

void MakeHash (const char *s, uint32 &h)
int32 CheckHash (const char *s, const uint32 h, uint32 &h2)
const char * OpenFile (int32 &cluster_search, RMParams *params)
int16 OldFindFile (uint32 url_hash, uint32 cluster_hash, uint32 total_hash)
int16 FindFile (uint32 url_hash, uint32 cluster_hash, uint32 total_hash)
int16 FindFile (RMParams *params)
void FindFileCluster (int32 &url_search, int32 &cluster_search, RMParams *params)
HEADER_NORMALGetFileHeader (int32 &cluster_search, RMParams *params)
int32 SameFile (mem *current_mem_block, const char *url, const uint32 url_hash, const uint32 cluster_hash)
void ReadFile (const char *new_url, RMParams *params)
uint32 FindMemBlock (uint32 adj_len, RMParams *params)
uint8AllocMemory (uint32 &memory_tot)
void Initialise (uint32 memory_tot, uint32 threadFlag)
uint8Internal_open (RMParams *params, int *ret_len=NULL)
uint8LoadFile (int32 &cluster_search, RMParams *params)
int16 Find_space (uint32 len)
uint16 Fetch_spawn (uint16 parent)
void OpenAsync ()
void CloseAsync ()
async_PacketType async_shiftArray ()
void async_setLoading (async_PacketType s)

Private Attributes

uint32 total_pool
uint32 total_free_memory
uint8memory_base
uint32 total_blocks
uint32 number_files_open
uint32 max_mem_blocks
memmem_list
mem_offsetmem_offset_list
int32 num_mem_offsets
uint16 current_time_frame
uint32 hasThread
rcActArray< async_PacketTypeasync_fnArray
bool8 auto_time_advance
bool8 no_defrag
uint8 id
uint8 padding1

Detailed Description

Definition at line 121 of file res_man.h.


Constructor & Destructor Documentation

ICB::res_man::res_man (  ) 

Definition at line 431 of file res_man.cpp.

ICB::res_man::res_man ( uint32  memory_tot,
uint32  threadFlag 
)

Definition at line 439 of file res_man.cpp.

ICB::res_man::res_man ( uint8 base,
uint32  size 
)
ICB::res_man::~res_man (  ) 

Definition at line 309 of file res_man.cpp.


Member Function Documentation

void ICB::res_man::AddMemOffset ( uint32  total_hash,
int32  search 
)

Definition at line 613 of file res_man.cpp.

void ICB::res_man::Advance_time_stamp (  ) 

Definition at line 422 of file res_man.cpp.

uint8 * ICB::res_man::AllocMemory ( uint32 memory_tot  )  [private]

Definition at line 377 of file res_man_pc.cpp.

void ICB::res_man::async_addFile ( const int8 fn,
uint8 p,
int32  size,
int32  zipped,
int32  memListNo 
)

Definition at line 266 of file res_man_pc.cpp.

int32 ICB::res_man::async_checkArray (  ) 

Definition at line 285 of file res_man_pc.cpp.

void ICB::res_man::async_flush (  ) 

Definition at line 314 of file res_man_pc.cpp.

void ICB::res_man::async_setLoading ( async_PacketType  s  )  [private]

Definition at line 277 of file res_man_pc.cpp.

async_PacketType ICB::res_man::async_shiftArray (  )  [private]

Definition at line 241 of file res_man_pc.cpp.

uint32 ICB::res_man::Check_file_size ( const char *  url,
uint32  url_hash,
const char *  cluster_url,
uint32  cluster_hash 
)

Definition at line 725 of file res_man.cpp.

int32 ICB::res_man::CheckHash ( const char *  s,
const uint32  h,
uint32 h2 
) [inline, private]

Definition at line 360 of file res_man.h.

void ICB::res_man::CloseAsync (  )  [private]

Definition at line 221 of file res_man_pc.cpp.

void ICB::res_man::Construct ( uint8 base,
uint32  size,
mem memList,
mem_offset memOffsets,
uint32  nMemBlocks 
)

Definition at line 455 of file res_man.cpp.

void ICB::res_man::Defrag (  ) 

Definition at line 145 of file res_man.cpp.

uint32 ICB::res_man::Fetch_files_open (  )  [inline]

Definition at line 338 of file res_man.h.

uint32 ICB::res_man::Fetch_free_memory (  )  [inline]

Definition at line 334 of file res_man.h.

uint32 ICB::res_man::Fetch_max_mem_blocks (  )  [inline]

Definition at line 344 of file res_man.h.

mem * ICB::res_man::Fetch_mem_list (  )  [inline]

Definition at line 342 of file res_man.h.

uint32 ICB::res_man::Fetch_mem_used (  )  [inline]

Definition at line 346 of file res_man.h.

uint32 ICB::res_man::Fetch_old_memory ( int  number_of_cycles  ) 

Definition at line 319 of file res_man.cpp.

uint32 ICB::res_man::Fetch_size ( const char *  url,
uint32  url_hash,
const char *  cluster_url,
uint32  cluster_hash 
)

Definition at line 391 of file res_man_pc.cpp.

uint16 ICB::res_man::Fetch_spawn ( uint16  parent  )  [private]

Definition at line 117 of file res_man.cpp.

uint32 ICB::res_man::Fetch_total_pool_size (  )  [inline]

Definition at line 330 of file res_man.h.

int16 ICB::res_man::find_oldest_file (  ) 
int16 ICB::res_man::Find_space ( uint32  len  )  [private]

Definition at line 51 of file res_man.cpp.

int16 ICB::res_man::FindFile ( uint32  url_hash,
uint32  cluster_hash,
uint32  total_hash 
) [private]

Definition at line 577 of file res_man.cpp.

int16 ICB::res_man::FindFile ( RMParams params  )  [private]

Definition at line 642 of file res_man.cpp.

void ICB::res_man::FindFileCluster ( int32 url_search,
int32 cluster_search,
RMParams params 
) [private]

Definition at line 644 of file res_man.cpp.

uint32 ICB::res_man::FindMemBlock ( uint32  adj_len,
RMParams params 
) [private]

Definition at line 874 of file res_man.cpp.

int32 ICB::res_man::FindMemOffset ( uint32  total_hash  )  [inline]

Definition at line 278 of file res_man.h.

int32 ICB::res_man::FindMemSearch ( uint32  total_hash  )  [inline]

Definition at line 306 of file res_man.h.

void ICB::res_man::Garbage_removal (  ) 

Definition at line 727 of file res_man_pc.cpp.

uint8 * ICB::res_man::Get_memory_base (  )  [inline]

Definition at line 314 of file res_man.h.

uint32 ICB::res_man::Get_memory_size (  )  [inline]

Definition at line 318 of file res_man.h.

HEADER_NORMAL * ICB::res_man::GetFileHeader ( int32 cluster_search,
RMParams params 
) [private]

Definition at line 549 of file res_man_pc.cpp.

int ICB::res_man::Id (  )  [inline]

Definition at line 372 of file res_man.h.

void ICB::res_man::Id ( int  newId  )  [inline]

Definition at line 370 of file res_man.h.

void ICB::res_man::Initialise ( uint32  memory_tot,
uint32  threadFlag 
) [private]

Definition at line 258 of file res_man.cpp.

uint8 * ICB::res_man::Internal_open ( RMParams params,
int *  ret_len = NULL 
) [private]

Definition at line 742 of file res_man.cpp.

uint8 * ICB::res_man::LoadFile ( int32 cluster_search,
RMParams params 
) [private]

Definition at line 833 of file res_man.cpp.

void ICB::res_man::MakeHash ( const char *  s,
uint32 h 
) [inline, private]

Definition at line 354 of file res_man.h.

int16 ICB::res_man::OldFindFile ( uint32  url_hash,
uint32  cluster_hash,
uint32  total_hash 
) [private]

Definition at line 548 of file res_man.cpp.

void ICB::res_man::OpenAsync (  )  [private]

Definition at line 198 of file res_man_pc.cpp.

const char * ICB::res_man::OpenFile ( int32 cluster_search,
RMParams params 
) [private]

Definition at line 485 of file res_man_pc.cpp.

void ICB::res_man::ReadFile ( const char *  new_url,
RMParams params 
) [private]

Definition at line 443 of file res_man_pc.cpp.

void ICB::res_man::RegisterAsync ( const int32  n  ) 

Definition at line 388 of file res_man_pc.cpp.

uint8 * ICB::res_man::Res_alloc ( uint32  url_hash,
const char *  cluster,
uint32  cluster_hash,
uint32  length 
)

Definition at line 1086 of file res_man.cpp.

uint8 * ICB::res_man::Res_async_open ( const char *  url,
uint32 url_hash,
const char *  cluster_url,
uint32 cluster_hash,
int  compressed = 0 
)

Definition at line 382 of file res_man.cpp.

uint8 * ICB::res_man::Res_open ( const char *  url,
uint32 url_hash,
const char *  cluster_url,
uint32 cluster_hash,
int  compressed = 0,
int *  ret_len = NULL 
)

Definition at line 349 of file res_man.cpp.

void ICB::res_man::Res_open_cluster ( const char *  cluster_url,
uint32 cluster_hash,
int32  size = -1 
)

Definition at line 602 of file res_man_pc.cpp.

void ICB::res_man::Res_open_mini_cluster ( const char *  cluster_url,
uint32 cluster_hash,
const char *  fake_cluster_url,
uint32 fake_cluster_hash 
)

Definition at line 604 of file res_man_pc.cpp.

void ICB::res_man::Res_purge ( const char *  url,
uint32  url_hash,
const char *  cluster,
uint32  cluster_hash,
uint32  fatal = 1 
)

Definition at line 471 of file res_man.cpp.

void ICB::res_man::Res_purge_all (  ) 

Definition at line 649 of file res_man.cpp.

void ICB::res_man::Reset (  ) 

Definition at line 281 of file res_man.cpp.

int32 ICB::res_man::SameFile ( mem current_mem_block,
const char *  url,
const uint32  url_hash,
const uint32  cluster_hash 
) [inline, private]

Definition at line 350 of file res_man.h.

void ICB::res_man::Set_auto_timeframe_advance (  )  [inline]

Definition at line 322 of file res_man.h.

void ICB::res_man::Set_to_no_defrag (  )  [inline]

Definition at line 326 of file res_man.h.

bool8 ICB::res_man::Test_file ( const char *  url  ) 

Definition at line 432 of file res_man_pc.cpp.

bool8 ICB::res_man::Test_file ( const char *  url,
uint32  url_hash,
const char *  cluster_url,
uint32  cluster_hash 
)

Definition at line 411 of file res_man_pc.cpp.


Member Data Documentation

Definition at line 143 of file res_man.h.

Definition at line 149 of file res_man.h.

Definition at line 139 of file res_man.h.

Definition at line 148 of file res_man.h.

Definition at line 270 of file res_man.h.

Definition at line 134 of file res_man.h.

Definition at line 136 of file res_man.h.

Definition at line 151 of file res_man.h.

Definition at line 152 of file res_man.h.

Definition at line 272 of file res_man.h.

Definition at line 127 of file res_man.h.

Definition at line 129 of file res_man.h.

Definition at line 131 of file res_man.h.

Definition at line 124 of file res_man.h.

Definition at line 271 of file res_man.h.

Definition at line 132 of file res_man.h.

Definition at line 126 of file res_man.h.

Definition at line 274 of file res_man.h.

Definition at line 125 of file res_man.h.

Definition at line 123 of file res_man.h.

Definition at line 122 of file res_man.h.


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


Generated on Sat Sep 26 2020 05:03:41 for ResidualVM by doxygen 1.7.1
curved edge   curved edge