diff options
Diffstat (limited to '')
-rw-r--r-- | src/serializerbinary.cpp | 10 |
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 | ||
38 | void SerializerBinary::write(void * pData, int32_t nSize) | ||
39 | { | ||
40 | fwrite(pData, nSize, 1, fhFile); | ||
41 | } | ||
42 | |||
43 | void SerializerBinary::read(void * pData, int32_t nSize) | ||
44 | { | ||
45 | fread(pData, nSize, 1, fhFile); | ||
46 | } | ||
47 | |||
38 | Serializer &SerializerBinary::operator<<(bool p) | 48 | Serializer &SerializerBinary::operator<<(bool p) |
39 | { | 49 | { |
40 | fwrite(&p, sizeof(p), 1, fhFile); | 50 | fwrite(&p, sizeof(p), 1, fhFile); |