Implement caches.

This commit is contained in:
2022-10-02 16:05:25 +01:00
parent 0e530dff85
commit a610610f66
9 changed files with 193 additions and 37 deletions

View File

@@ -19,6 +19,7 @@
#ifndef LIBAARUFORMAT_CONTEXT_H
#define LIBAARUFORMAT_CONTEXT_H
#include "lru.h"
#include "structs.h"
typedef struct aaruformatContext
@@ -56,6 +57,8 @@ typedef struct aaruformatContext
uint8_t numberOfDataTracks;
TrackEntry* dataTracks;
bool* readableSectorTags;
struct CacheHeader blockHeaderCache;
struct CacheHeader blockCache;
} aaruformatContext;
typedef struct dataLinkedList