10 #include <AtomsCore/Globals.h>
11 #include <AtomsCore/AtomsMath.h>
12 #include <AtomsCore/MemoryUtils.h>
13 #include <AtomsCore/Hash.h>
36 kRandomAccessCompress = 2,
138 #include "Serialiser.impl.h"
Archive class.
Definition: Serialiser.h:29
void clear()
Clears the binary stream.
size_t index
Current binary stream index.
Definition: Serialiser.h:103
Archive(size_t len, size_t tag=kNone)
Constructor.
size_t size
Memory size of the binary stream.
Definition: Serialiser.h:106
void resize(size_t len)
Resize buffer.
bool decodeBase64(const std::string &stringValue)
Reads a base64 string and store inside the binary stream.
bool writeToFile(const std::string &fileName)
Writes binary stream to a file.
unsigned char * buffer
Binary stream.
Definition: Serialiser.h:98
bool readFromFile(const std::string &fileName)
Reads a file and store inside the binary stream.
std::string headerString
Header string.
Definition: Serialiser.h:112
size_t version
Archive serialization version.
Definition: Serialiser.h:109
std::string encodeBase64(bool compress=false)
Encode the binary stream in base 64.
size_t tags
Flags.
Definition: Serialiser.h:115
bool autoDelete
Autodelete flag.
Definition: Serialiser.h:120
void reset()
Resets the index pointer of the archive.
AtomsCore namespace.
Definition: Agent.h:344