ARB
Classes | Functions
adcache.cxx File Reference
#include "gb_storage.h"
#include "gb_main.h"
#include "gb_tune.h"
Include dependency graph for adcache.cxx:

Go to the source code of this file.

Classes

struct  gb_cache_entry
 

Functions

bool entry_is_linked (gb_cache &cache, gb_cache_idx index)
 
gb_cache_entryunlink_cache_entry (gb_cache &cache, gb_cache_idx index)
 
void link_cache_entry_to_top (gb_cache &cache, gb_cache_idx index)
 
void flush_cache_entry (gb_cache &cache, gb_cache_idx index)
 
chargb_read_cache (GBENTRY *gbe)
 
void gb_free_cache (GB_MAIN_TYPE *Main, GBENTRY *gbe)
 
static void gb_uncache (GBCONTAINER *gbc)
 
void gb_uncache (GBENTRY *gbe)
 
void gb_uncache (GBDATA *gbd)
 
void GB_flush_cache (GBDATA *gbd)
 
static charcache_free_some_memory (gb_cache &cache, size_t needed_mem)
 
chargb_alloc_cache_index (GBENTRY *gbe, size_t size)
 
charGB_set_cache_size (GBDATA *gbd, size_t size)
 

Function Documentation

bool entry_is_linked ( gb_cache cache,
gb_cache_idx  index 
)
inline
gb_cache_entry& unlink_cache_entry ( gb_cache cache,
gb_cache_idx  index 
)
inline
void link_cache_entry_to_top ( gb_cache cache,
gb_cache_idx  index 
)
inline
void flush_cache_entry ( gb_cache cache,
gb_cache_idx  index 
)
inline
char* gb_read_cache ( GBENTRY gbe)
void gb_free_cache ( GB_MAIN_TYPE Main,
GBENTRY gbe 
)
static void gb_uncache ( GBCONTAINER gbc)
static
void gb_uncache ( GBENTRY gbe)

Definition at line 215 of file adcache.cxx.

References gb_free_cache(), and GB_MAIN().

void gb_uncache ( GBDATA gbd)
inline
void GB_flush_cache ( GBDATA gbd)

Definition at line 226 of file adcache.cxx.

References gb_uncache().

Referenced by GB_read_bits_pntr().

static char* cache_free_some_memory ( gb_cache cache,
size_t  needed_mem 
)
static
char* gb_alloc_cache_index ( GBENTRY gbe,
size_t  size 
)
char* GB_set_cache_size ( GBDATA gbd,
size_t  size 
)