aboutsummaryrefslogtreecommitdiff
path: root/src/archive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/archive.cpp')
-rw-r--r--src/archive.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/archive.cpp b/src/archive.cpp
index f29895c..69d4a0c 100644
--- a/src/archive.cpp
+++ b/src/archive.cpp
@@ -9,6 +9,8 @@
9#include "bu/stream.h" 9#include "bu/stream.h"
10#include "bu/archival.h" 10#include "bu/archival.h"
11 11
12#include "bu/sio.h"
13
12Bu::Archive::Archive( Stream &rStream, bool bLoading ) : 14Bu::Archive::Archive( Stream &rStream, bool bLoading ) :
13 bLoading( bLoading ), 15 bLoading( bLoading ),
14 rStream( rStream ), 16 rStream( rStream ),
@@ -24,8 +26,13 @@ void Bu::Archive::write( const void *pData, int32_t nSize )
24{ 26{
25 if( nSize == 0 || pData == NULL ) 27 if( nSize == 0 || pData == NULL )
26 return; 28 return;
27 29
30// Bu::sio << "Writing starting at pos: " << rStream.tell() << " - "
31// << Bu::sio.flush;
32
28 rStream.write( (const char *)pData, nSize ); 33 rStream.write( (const char *)pData, nSize );
34//
35// Bu::sio << rStream.tell() << " (" << nSize << "b)" << Bu::sio.nl;
29} 36}
30 37
31void Bu::Archive::read( void *pData, int32_t nSize ) 38void Bu::Archive::read( void *pData, int32_t nSize )