Added PASAP entity systems

This was SVN commit r246.
This commit is contained in:
MarkT
2004-05-21 23:46:16 +00:00
parent 6f2aba631b
commit 6d5afc10ff
90 changed files with 8823 additions and 8423 deletions
+14
View File
@@ -398,6 +398,20 @@ ostream &operator<<(ostream &os, CStr &Str)
return os;
}
size_t CStr::GetHashCode() const
{
// FNV-1 hash for 64 bit integers.
size_t hash = 14695981039346656037;
const char* data = m_String.data();
for( int t = 0; t < m_String.length(); t++ )
{
hash *= 1099511628211;
hash ^= *(data++);
}
return( hash );
}
uint CStr::GetSerializedLength() const
{
return uint(m_String.length()+1);