Contents

SushiEngine::Database::AssetId

parse

static std::optional< AssetId > parse(std::string_view hex32)

Parameters

NameTypeDescription
hex32std::string_view

Exactly 32 characters, each 0-9 or a-f.

Returns

std::optional< AssetId >

The parsed id, or std::nullopt when hex32 is not that shape.

Description

Parses 32 lower-case hex characters into an id.