Contents

SushiEngine::EventBus

hash_event_path

constexpr std::uint64_t hash_event_path(std::string_view project_relative_path) noexcept

Parameters

NameTypeDescription
project_relative_pathstd::string_view

The path, relative to the project root.

Returns

std::uint64_t

The hash; comparison is case-sensitive, though Windows paths are not, so a publisher and its subscribers must agree on one casing for the same file.

Description

Hashes a project-relative path with 64-bit FNV-1a, folding \\endiskip to /.