45 virtual void Read(
void *data,
int bytes);
54 virtual void Write(
const void *data,
int bytes);
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
SeekType
Origins of Seek().
Definition binstream.h:25
BinStream that reads or writes a file.
Definition filestream.h:14
virtual void Read(void *data, int bytes)
Read bytes.
virtual ~FileStream()
Close the file.
virtual void Seek(int offset, SeekType type)
Move the position.
FileType
How the file is opened.
Definition FileStream.h:15
@ kWrite
Definition FileStream.h:17
@ kRead
Definition FileStream.h:16
virtual void Write(const void *data, int bytes)
Write bytes.
FileStream(const char *file, FileType type, bool littleEndian, int flags)
Open a file.
virtual void Flush()
Write out the file's buffered data.
Open file of the host or the disc.
Definition file.h:29