8 #include "BinaryParsing.h"
23 bool WriteToFile(
const CacheModel& cacheModel,
const std::string& filename);
24 bool ReadFromFile(
const std::string& filename,
CacheModel& cacheModel);
30 void WriteHeader(std::ostream& outputStream);
31 bool TryReadHeader(std::istream& inputStream,
unsigned int& out_version);
33 void WriteFooter(std::ostream& outputStream);
34 bool TryReadFooter(std::istream& inputStream);
36 void WriteRecord(
const CacheRecord& record, std::ostream& outputStream);
37 CacheRecord ReadRecord(std::istream& inputStream,
const u32 version);