Skip to content
Snippets Groups Projects
Commit d16d30c4 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

Hash: add Hash<N>::get(Hash<M>) to compute an hash from another

parent 4480436c
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,11 @@ public:
return get(data.data(), data.size());
}
template <size_t H>
static Hash get(const Hash<H>& o) {
return get(o.data(), o.size());
}
/**
* Computes the hash from a given data buffer of size data_len.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment