StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
hash.hxx File Reference
#include <StormByte/visibility.h>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <limits>
#include <span>
#include <type_traits>
Include dependency graph for hash.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StormByte::Safe::Hash< T >
 Hash of an integral or enumeration value. More...
struct  StormByte::Safe::Hash< T * >
 Hash of a pointer identity. More...

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
namespace  StormByte::Safe
 Owned values that cross a DLL without the caller's CRT.

Functions

STORMBYTE_FORCE_INLINE std::size_t StormByte::Safe::HashBytes (std::span< const std::byte > bytes) noexcept
 Mix a byte range with FNV-1a.
STORMBYTE_FORCE_INLINE std::size_t StormByte::Safe::HashCombine (std::size_t seed, std::size_t next) noexcept
 Mix an existing hash with another.