aboutsummaryrefslogtreecommitdiff
path: root/src/serializerbinary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/serializerbinary.cpp')
-rw-r--r--src/serializerbinary.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/serializerbinary.cpp b/src/serializerbinary.cpp
index 1ea9f36..53e469f 100644
--- a/src/serializerbinary.cpp
+++ b/src/serializerbinary.cpp
@@ -35,6 +35,16 @@ void SerializerBinary::close()
35 } 35 }
36} 36}
37 37
38void SerializerBinary::write(void * pData, int32_t nSize)
39{
40 fwrite(pData, nSize, 1, fhFile);
41}
42
43void SerializerBinary::read(void * pData, int32_t nSize)
44{
45 fread(pData, nSize, 1, fhFile);
46}
47
38Serializer &SerializerBinary::operator<<(bool p) 48Serializer &SerializerBinary::operator<<(bool p)
39{ 49{
40 fwrite(&p, sizeof(p), 1, fhFile); 50 fwrite(&p, sizeof(p), 1, fhFile);