37 virtual int Read(
void *data,
int bytes);
58 virtual int Write(
const void *data,
int bytes);
68 virtual int Seek(
int offset,
int origin);
Read-only file of the main archive, read through the disc cache.
Definition arkfile.h:11
virtual int Write(const void *data, int bytes)
Fail, because the archive is read-only.
virtual ~ArkFile()
Drop the reads still waiting for blocks.
virtual bool Fail()
Report whether the file was not found or was opened for writing.
virtual int Tell()
Report the position.
virtual int Seek(int offset, int origin)
Move the position.
virtual bool ReadAsync(void *data, int bytes)
Queue a read of each block the bytes cover, at most up to the end of the file.
void TaskDone(int bytes)
Count the bytes one block delivered.
ArkFile(const char *name, int mode)
Find a file in the archive.
virtual bool ReadDone(int *bytes)
Poll the block manager and report whether every block of the read arrived.
virtual int Read(void *data, int bytes)
Read bytes and wait for them.
virtual int Size()
Report the size in the archive.
virtual void Flush()
Do nothing.
virtual int UncompressedSize()
Report the size before compression.
virtual bool Eof()
Report whether the position is at the end.
Open file of the host or the disc.
Definition file.h:29
Growable text buffer that is also a PrnStream.
Definition string.h:19