DAW JSON Link
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions | Variables
daw Namespace Reference

Namespaces

namespace  json
 Customization point traits.
 

Typedefs

using json_name_hash_t = daw::UInt64
 

Functions

template<typename Hash , bool expect_long_strings, typename StringView >
static constexpr Hash fnv1a (StringView key)
 
template<std::size_t N, typename Hash >
static DAW_ATTRIB_INLINE constexpr auto fnv1a_N (daw::not_null< char const * > first, Hash hash=fnv1a_basis_v< Hash >)
 
template<typename StringView >
static constexpr daw::UInt32 murmur3_32 (StringView key, std::uint32_t seed=0)
 
template<bool expect_long_strings>
static DAW_ATTRIB_INLINE constexpr json_name_hash_t name_hash (daw::string_view key)
 

Variables

template<typename T >
constexpr T fnv1a_basis_v = daw::undefined_v<T>
 
template<typename T >
constexpr T fnv1a_prime_v = daw::undefined_v<T>
 

Typedef Documentation

◆ json_name_hash_t

using daw::json_name_hash_t = typedef daw::UInt64

Definition at line 23 of file daw_murmur3.h.

Function Documentation

◆ fnv1a()

template<typename Hash , bool expect_long_strings, typename StringView >
static constexpr Hash daw::fnv1a ( StringView  key)
staticconstexpr

Definition at line 65 of file daw_murmur3.h.

◆ fnv1a_N()

template<std::size_t N, typename Hash >
static DAW_ATTRIB_INLINE constexpr auto daw::fnv1a_N ( daw::not_null< char const * >  first,
Hash  hash = fnv1a_basis_v<Hash> 
)
staticconstexpr

Definition at line 55 of file daw_murmur3.h.

◆ murmur3_32()

template<typename StringView >
static constexpr daw::UInt32 daw::murmur3_32 ( StringView  key,
std::uint32_t  seed = 0 
)
staticconstexpr

Definition at line 109 of file daw_murmur3.h.

◆ name_hash()

template<bool expect_long_strings>
static DAW_ATTRIB_INLINE constexpr json_name_hash_t daw::name_hash ( daw::string_view  key)
staticconstexpr

Definition at line 92 of file daw_murmur3.h.

Variable Documentation

◆ fnv1a_basis_v

template<typename T >
constexpr T daw::fnv1a_basis_v = daw::undefined_v<T>
inlineconstexpr

Definition at line 38 of file daw_murmur3.h.

◆ fnv1a_prime_v

template<typename T >
constexpr T daw::fnv1a_prime_v = daw::undefined_v<T>
inlineconstexpr

Definition at line 40 of file daw_murmur3.h.