C# Class SharpQuake.Cache

Cache_functions
Datei anzeigen Open project: Memorix101/SharpQuake

Public Methods

Method Description
Alloc ( int size, string name ) : cache_user_t
Check ( cache_user_t c ) : object

Cache_Check Returns value of c.data if still cached or null

Init ( int capacity ) : void
Report ( ) : void

Cache_Report

Private Methods

Method Description
Flush ( ) : void
Free ( cache_user_t c ) : void
TryAlloc ( int size ) : CacheEntry

Method Details

Alloc() public static method

public static Alloc ( int size, string name ) : cache_user_t
size int
name string
return cache_user_t

Check() public static method

Cache_Check Returns value of c.data if still cached or null
public static Check ( cache_user_t c ) : object
c cache_user_t
return object

Init() public static method

public static Init ( int capacity ) : void
capacity int
return void

Report() public static method

Cache_Report
public static Report ( ) : void
return void