From 632e1d1dbe6ac35eba93523dd144129af1122ca2 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 13 May 2006 00:19:58 +0000 Subject: david - umm... yeah, made the generic write and read functions... --- src/serializerbinary.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/serializerbinary.cpp') 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() } } +void SerializerBinary::write(void * pData, int32_t nSize) +{ + fwrite(pData, nSize, 1, fhFile); +} + +void SerializerBinary::read(void * pData, int32_t nSize) +{ + fread(pData, nSize, 1, fhFile); +} + Serializer &SerializerBinary::operator<<(bool p) { fwrite(&p, sizeof(p), 1, fhFile); -- cgit v1.2.3