21 #ifndef GF_SERIALIZATION_H 22 #define GF_SERIALIZATION_H 27 #include "BufferRef.h" 28 #include "Portability.h" 30 #include "StringRef.h" 33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 66 void writeBoolean(
bool data);
71 void writeChar(
char data);
76 void writeSigned8(int8_t data);
81 void writeSigned16(int16_t data);
86 void writeSigned32(int32_t data);
91 void writeSigned64(int64_t data);
96 void writeUnsigned8(uint8_t data);
101 void writeUnsigned16(uint16_t data);
106 void writeUnsigned32(uint32_t data);
111 void writeUnsigned64(uint64_t data);
116 void writeFloat(
float data);
121 void writeDouble(
double data);
126 void writeString(
const char *data, std::size_t size);
131 void writeSizeHeader(std::size_t size);
134 void writeBigEndian64(uint64_t data);
135 void writeBigEndian32(uint32_t data);
136 void writeBigEndian16(uint16_t data);
137 void writeBigEndian8(uint8_t data);
174 bool readBoolean(
bool& data);
181 bool readChar(
char& data);
188 bool readSigned8(int8_t& data);
195 bool readSigned16(int16_t& data);
202 bool readSigned32(int32_t& data);
209 bool readSigned64(int64_t& data);
216 bool readUnsigned8(uint8_t& data);
223 bool readUnsigned16(uint16_t& data);
230 bool readUnsigned32(uint32_t& data);
237 bool readUnsigned64(uint64_t& data);
244 bool readFloat(
float& data);
251 bool readDouble(
double& data);
258 bool readString(
char *data, std::size_t size);
265 bool readSizeHeader(std::size_t& size);
268 bool readBigEndian64(uint64_t& data);
269 bool readBigEndian32(uint32_t& data);
270 bool readBigEndian16(uint16_t& data);
271 bool readBigEndian8(uint8_t& data);
281 #ifndef DOXYGEN_SHOULD_SKIP_THIS 286 #endif // GF_SERIALIZATION_H A deserializer from a binary file.
Definition: Serialization.h:153
uint16_t getVersion() const
Get the version of the current archive format.
Definition: Serialization.h:165
Abstract class for custom file output streams.
Definition: Stream.h:136
uint16_t getVersion() const
Get the version of the current archive format.
Definition: Serialization.h:59
A serializer to a binary file.
Definition: Serialization.h:45
The namespace for gf classes.
Definition: Action.h:35