From 867dae89929a11a421ec21af71d494ad0ecc1963 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 14 Oct 2010 23:26:25 +0000 Subject: SharedCore has more features now, which is cool, including a test to see if another object of the parent type has the same core, and another to clone the parent object. That one is pretty cool, it means you can now get a real copy when you want to, great for multi-threaded stuff. Also, two more classes are now SharedCore: Hash and Heap! --- src/archive.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/archive.cpp') diff --git a/src/archive.cpp b/src/archive.cpp index 69d4a0c..7a10921 100644 --- a/src/archive.cpp +++ b/src/archive.cpp @@ -22,20 +22,15 @@ Bu::Archive::~Archive() { } -void Bu::Archive::write( const void *pData, int32_t nSize ) +void Bu::Archive::write( const void *pData, size_t nSize ) { if( nSize == 0 || pData == NULL ) return; -// Bu::sio << "Writing starting at pos: " << rStream.tell() << " - " -// << Bu::sio.flush; - rStream.write( (const char *)pData, nSize ); -// -// Bu::sio << rStream.tell() << " (" << nSize << "b)" << Bu::sio.nl; } -void Bu::Archive::read( void *pData, int32_t nSize ) +void Bu::Archive::read( void *pData, size_t nSize ) { if( nSize == 0 || pData == NULL ) return; -- cgit v1.2.3