Contents

SushiEngine::EventBus

hash_event_name

constexpr EventTypeId hash_event_name(std::string_view name) noexcept

Parameters

NameTypeDescription
namestd::string_view

The stable name, already validated.

Returns

EventTypeId

The hash; never K_INVALID_EVENT_TYPE_ID for a valid name.

Description

Hashes a stable name with 64-bit FNV-1a.