Added helper func to murmur hash class.

This commit is contained in:
bkaradzic
2012-11-10 19:47:09 -08:00
parent 02c933d084
commit b6519e558f

View File

@@ -48,6 +48,12 @@ namespace bx
mixTail(data, _len);
}
template<typename Ty>
void add(Ty _value)
{
add(&_value, sizeof(Ty) );
}
uint32_t end()
{
mmix(m_hash, m_tail);