From 27e0164234c916adaf0ce78e29dffe565302ef53 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 25 Nov 2006 23:38:14 +0000 Subject: I think this is a better serializer model. --- src/serializerbzip2.cpp | 122 ------------------------------------------------ 1 file changed, 122 deletions(-) (limited to 'src/serializerbzip2.cpp') diff --git a/src/serializerbzip2.cpp b/src/serializerbzip2.cpp index 9d4dafa..bafabc8 100644 --- a/src/serializerbzip2.cpp +++ b/src/serializerbzip2.cpp @@ -86,125 +86,3 @@ void SerializerBZip2::read(void * pData, int32_t nSize) checkBZError(); } -Serializer &SerializerBZip2::operator<<(bool p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(int8_t p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(int16_t p) -{ - write (&p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(int32_t p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(int64_t p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(uint8_t p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(uint16_t p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(uint32_t p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(uint64_t p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(float p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(double p) -{ - write( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator<<(long double p) -{ - write( &p, sizeof(p) ); - return *this; -} - -Serializer &SerializerBZip2::operator>>(bool &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(int8_t &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(int16_t &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(int32_t &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(int64_t &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(uint8_t &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(uint16_t &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(uint32_t &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(uint64_t &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(float &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(double &p) -{ - read( &p, sizeof(p) ); - return *this; -} -Serializer &SerializerBZip2::operator>>(long double &p) -{ - read( &p, sizeof(p) ); - return *this; -} - -- cgit v1.2.3