Example #1
0
uint64 Setting::SerializedValueSize()
{
    ComputeSizeSerializer serializer;
    const uint64 startSize = serializer.Size();
    SerializeValue(serializer);
    return serializer.Size() - startSize;
}
Example #2
0
 bool Serialize( GI::ByteBuffer &buf )
 {
     buf.Push( m_ps.size() );
     for( Properties::iterator it = m_ps.begin(); it != m_ps.end(); ++ it )
     {
         const TypeSet::KeyType *key = it->first;
         buf.Push( (short) (long)(*key) );
         SerializeValue( *it->second, buf );
     }
     return false;
 }