31 constexpr static size_t MaxPathLen = 211;
35 StorePath(std::string_view baseName);
37 StorePath(
const Hash & hash, std::string_view name);
39 std::string_view to_string()
const
44 bool operator < (
const StorePath & other)
const
46 return baseName < other.baseName;
49 bool operator == (
const StorePath & other)
const
51 return baseName == other.baseName;
54 bool operator != (
const StorePath & other)
const
56 return baseName != other.baseName;
64 std::string_view name()
const
66 return std::string_view(baseName).substr(
HashLen + 1);
69 std::string_view hashPart()
const
71 return std::string_view(baseName).substr(0,
HashLen);
74 static StorePath dummy;
76 static StorePath random(std::string_view name);