Mode | Name | Size | |
---|---|---|---|
-rw-r--r-- | CMakeLists.txt | 2335 | logplain |
-rw-r--r-- | test.cpp | 19307 | logplain |
-rw-r--r-- | test.h | 5685 | logplain |
-rw-r--r-- | test_activeobject.cpp | 1691 | logplain |
-rw-r--r-- | test_address.cpp | 2151 | logplain |
-rw-r--r-- | test_areastore.cpp | 4557 | logplain |
-rw-r--r-- | test_authdatabase.cpp | 8007 | logplain |
-rw-r--r-- | test_ban.cpp | 4000 | logplain |
-rw-r--r-- | test_clientactiveobjectmgr.cpp | 3297 | logplain |
-rw-r--r-- | test_collision.cpp | 5294 | os<<serializeString(i->second); } } void NameIdMapping::deSerialize(std::istream &is) { int version = readU8(is); if(version != 0) throw SerializationError("unsupported NameIdMapping version"); u32 count = readU16(is); m_id_to_name.clear(); m_name_to_id.clear(); for(u32 i=0; i<count; i++){ u16 id = readU16(is); std::string name = deSerializeString(is); m_id_to_name[id] = name; m_name_to_id[name] = id; } } |