54 char *
GetData(
int *position,
int *bytesAvailable);
58 enum { kNumBuffers = 2 };
70 char *mBuffers[kNumBuffers];
71 unsigned int mCurBuffer;
Open file of the host or the disc.
Definition file.h:29
Double-buffered reader with one asynchronous read of a file always in flight.
Definition lazyfilestream.h:14
char * GetData(int *position, int *bytesAvailable)
Take the buffer of the completed read, and start the next read unless the file ended.
bool ReadDone()
Report whether the read in flight is complete, recording how many bytes arrived.
~LazyFileStream()
Close the file and free the buffers.
LazyFileStream(const String &filename, int bufferSize)
Open a file, allocate the buffers, and start the first read.
bool Eof() const
Report whether the last read reached the end of the file.
Growable text buffer that is also a PrnStream.
Definition string.h:19