31 #ifndef SERUT_FILESERIALIZER_H
33 #define SERUT_FILESERIALIZER_H
35 #include "serutconfig.h"
71 bool readBytes(
void *pBuffer,
size_t amount);
72 bool writeBytes(
const void *pBuffer,
size_t amount);
A serializer for writing to and reading from files.
Definition: fileserializer.h:45
OpenMode
Specifies the mode in which a file can be opened.
Definition: fileserializer.h:49
@ ReadOnly
Read-only mode.
Definition: fileserializer.h:51
@ WriteOnly
Write-only mode.
Definition: fileserializer.h:53
bool open(const std::string &filename, OpenMode m)
Open a file.
bool close()
Close a previously opened file.
Generic serialization interface.
Definition: serializationinterface.h:58