MCPcopy Create free account
hub / github.com/ByConity/ByConity / v2_do_string_hash

Function v2_do_string_hash

src/Common/StringUtils/StringUtils.cpp:465–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463
464template<class _Ptr>
465inline _LIBCPP_INLINE_VISIBILITY
466size_t v2_do_string_hash(_Ptr __p, _Ptr __e)
467{
468 typedef typename iterator_traits<_Ptr>::value_type value_type;
469 return v2_murmur2_or_cityhash<size_t>()(__p, (__e-__p)*sizeof(value_type));
470}
471
472size_t hash(const std::string &s)
473{

Callers 1

hashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected