diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2020-01-06 21:22:07 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2020-01-06 21:22:07 +0100 |
commit | 7d403431e354c4a24d7dfdbef3a39ab7297ae7b5 (patch) | |
tree | 251f40ac82488dc2690ff4dea6affc22085f7b48 /src/storage.h | |
parent | 94f4127f71d0358424bbaba3e849c761903a75a1 (diff) |
Deep copy of object to different storage
Diffstat (limited to 'src/storage.h')
-rw-r--r-- | src/storage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h index cdb8984..9e22a4a 100644 --- a/src/storage.h +++ b/src/storage.h @@ -103,6 +103,11 @@ struct Storage::Priv shared_ptr<StorageBackend> backend; optional<vector<uint8_t>> loadBytes(const Digest & digest) const; + + template<class S> + optional<Digest> copy(const typename S::Ref &, vector<Digest> *) const; + template<class S> + optional<Digest> copy(const ObjectT<S> &, vector<Digest> *) const; }; struct Ref::Priv |