Merge pull request #123 from nathanhourt/support-1506

Add missing serialization for sha1
This commit is contained in:
Nathan Hourt 2019-04-26 14:24:17 -05:00 committed by GitHub
commit e003fec4cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,20 @@ class sha1
uint32_t _hash[5];
};
namespace raw {
template<typename T>
inline void pack( T& ds, const sha1& ep, uint32_t _max_depth ) {
ds << ep;
}
template<typename T>
inline void unpack( T& ds, sha1& ep, uint32_t _max_depth ) {
ds >> ep;
}
}
class variant;
void to_variant( const sha1& bi, variant& v, uint32_t max_depth );
void from_variant( const variant& v, sha1& bi, uint32_t max_depth );