aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/gatsstream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++-qt/src/gatsstream.cpp')
-rw-r--r--c++-qt/src/gatsstream.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/c++-qt/src/gatsstream.cpp b/c++-qt/src/gatsstream.cpp
index cb6b53c..36b2ba8 100644
--- a/c++-qt/src/gatsstream.cpp
+++ b/c++-qt/src/gatsstream.cpp
@@ -42,8 +42,9 @@ Gats::Object *Gats::GatsStream::readObject()
42 } 42 }
43 } while( !skipReadNulls() ); 43 } while( !skipReadNulls() );
44 44
45 uint8_t uVer; 45 // There's only one version, so...we don't need to do anything with this
46 uVer = qbRead[0]; 46 //uint8_t uVer;
47 //uVer = qbRead[0];
47 48
48 int32_t iSize; 49 int32_t iSize;
49 memcpy( &iSize, qbRead.constData()+1, 4 ); 50 memcpy( &iSize, qbRead.constData()+1, 4 );
@@ -102,7 +103,7 @@ void Gats::GatsStream::writeObject( Gats::Object *pObject )
102 pTmp->write( (const char *)&iSize, 4 ); 103 pTmp->write( (const char *)&iSize, 4 );
103 pObject->write( *pTmp ); 104 pObject->write( *pTmp );
104 iSize = htonl( pTmp->pos() ); 105 iSize = htonl( pTmp->pos() );
105 uint64_t iEndPos = pTmp->pos(); 106 //uint64_t iEndPos = pTmp->pos();
106 pTmp->seek( iSizePos ); 107 pTmp->seek( iSizePos );
107 pTmp->write( (const char *)&iSize, 4 ); 108 pTmp->write( (const char *)&iSize, 4 );
108 109