21 #include "../files/file.h"
56 while (Offset >=
m_buf.size()) {
69 return m_buf.at(Offset);
79 mutable std::vector<char>
m_buf;
char operator[](size_t Offset) const
A wrapper around the C FILE*-based IO API.
std::vector< char > m_buf
A file that supports random reads: reads that are based on an offset.
RandomReadFile(const char *path)
Opens a random-read file at the given path.
int ReadChar()
Reads the next input character from this file.