@ -68,7 +68,7 @@ inline const T* end_ptr(const std::vector<T,TAl>& v)
@@ -68,7 +68,7 @@ inline const T* end_ptr(const std::vector<T,TAl>& v)
/////////////////////////////////////////////////////////////////
//
// Templates for serializing to anything that looks like a stream,
// i.e. anything that supports .read(char*, int) and .write(char*, in t)
// i.e. anything that supports .read(char*, size_t) and .write(char*, size_ t)
//
enum
@ -876,7 +876,7 @@ public:
@@ -876,7 +876,7 @@ public:
CSizeComputer ( int nTypeIn , int nVersionIn ) : nSize ( 0 ) , nType ( nTypeIn ) , nVersion ( nVersionIn ) { }
CSizeComputer & write ( const char * psz , in t nSize )
CSizeComputer & write ( const char * psz , size_ t nSize )
{
this - > nSize + = nSize ;
return * this ;
@ -1105,10 +1105,9 @@ public:
@@ -1105,10 +1105,9 @@ public:
void ReadVersion ( ) { * this > > nVersion ; }
void WriteVersion ( ) { * this < < nVersion ; }
CDataStream & read ( char * pch , in t nSize )
CDataStream & read ( char * pch , size_ t nSize )
{
// Read from the beginning of the buffer
assert ( nSize > = 0 ) ;
unsigned int nReadPosNext = nReadPos + nSize ;
if ( nReadPosNext > = vch . size ( ) )
{
@ -1145,10 +1144,9 @@ public:
@@ -1145,10 +1144,9 @@ public:
return ( * this ) ;
}
CDataStream & write ( const char * pch , in t nSize )
CDataStream & write ( const char * pch , size_ t nSize )
{
// Write to the end of the buffer
assert ( nSize > = 0 ) ;
vch . insert ( vch . end ( ) , pch , pch + nSize ) ;
return ( * this ) ;
}