37 constexpr static size_t MaxPathLen = 211;
42 StorePath(std::string_view baseName);
45 StorePath(
const Hash & hash, std::string_view name);
47 std::string_view to_string() const noexcept
52 bool operator == (
const StorePath & other)
const noexcept =
default;
53 auto operator <=> (
const StorePath & other)
const noexcept =
default;
67 return std::string_view(baseName).substr(
HashLen + 1);
70 std::string_view hashPart()
const
72 return std::string_view(baseName).substr(0,
HashLen);
75 static StorePath dummy;
77 static StorePath random(std::string_view name);