3 * - By thePowersGang (John Hodge)
6 * - Dummied-out Block IO Caching
14 tIOCache_WriteCallback Write;
19 tIOCache *IOCache_Create( tIOCache_WriteCallback Write, void *ID, int SectorSize, int CacheSize )
21 tIOCache *ret = malloc(sizeof(tIOCache));
26 int IOCache_Read( tIOCache *Cache, Uint64 Sector, void *Buffer )
30 int IOCache_Add( tIOCache *Cache, Uint64 Sector, const void *Buffer )
34 int IOCache_Write( tIOCache *Cache, Uint64 Sector, const void *Buffer )
37 Cache->Write(Cache->ID, Sector, Buffer);
41 void IOCache_Flush( tIOCache *Cache )
44 void IOCache_Destroy( tIOCache *Cache )