25 #include "common/hash-str.h" 26 #include "common/stream.h" 27 #include "common/list.h" 28 #include "common/path.h" 29 #include "common/stablemap.h" 30 #include "common/formats/json.h" 46 bool open(
const byte *buf, int64 bufSize);
47 uint32 read(
void *dataPtr, uint32 dataSize);
52 bool seek(int64 offset,
int whence = SEEK_SET);
55 const byte *_buf =
nullptr;
64 bool open(byte *buf, int64 bufSize);
65 uint32 write(
const void *dataPtr, uint32 dataSize)
override;
67 int64 pos()
const override;
68 int64 size()
const override;
69 bool seek(int64 offset,
int whence = SEEK_SET)
override;
82 uint32 read(
void *dataPtr, uint32 dataSize);
87 bool seek(int64 offset,
int whence = SEEK_SET);
102 uint32 read(
void *dataPtr, uint32 dataSize);
107 bool seek(int64 offset,
int whence = SEEK_SET);
140 void writeMarker(byte marker);
144 void writeInt(
int value);
145 void writeFloat(
float value);
172 bool assetExists(
const char *asset) {
return _entries.contains(asset); }
176 GGPackEntries _entries;
182 void init(
const XorKey &key);
183 bool assetExists(
const char *asset);
185 bool containsDLC()
const;
197 uint32 read(
void *dataPtr, uint32 dataSize)
override;
198 bool eos()
const override;
212 uint32 read(
void *dataPtr, uint32 dataSize)
override;
213 bool eos()
const override;
215 int64 pos()
const override;
216 int64 size()
const override;
217 bool seek(int64 offset,
int whence = SEEK_SET)
override;
Definition: achievements_tables.h:27