Store hybrid torrents using "torrent ID" as basename

This commit is contained in:
Vladimir Golovnev (Glassez)
2022-01-21 19:50:15 +03:00
parent c40408b337
commit 7a539d9890
4 changed files with 117 additions and 41 deletions

View File

@@ -43,6 +43,8 @@ public:
using UnderlyingType = lt::digest32<N>;
Digest32() = default;
Digest32(const Digest32 &other) = default;
Digest32(Digest32 &&other) = default;
Digest32(const UnderlyingType &nativeDigest)
{
@@ -62,6 +64,9 @@ public:
return m_dataPtr->valid;
}
Digest32 &operator=(const Digest32 &other) = default;
Digest32 &operator=(Digest32 &&other) = default;
operator UnderlyingType() const
{
return m_dataPtr->nativeDigest;