} //void compute(const uint8_t *data, uint32_t length, const char *types = nullptr) { begin(types); buffer(data, length); end(); } // internal helpers //------------------------------------------------- // copyfrom - copy everything from another // collection //------------------------------------------------- void copyfrom(hash_collection src) { // copy flags directly m_flags = src.m_flags; // copy hashes m_has_crc32 = src.m_has_crc32; m_crc32 = src.m_crc32; m_has_sha1 = src.m_has_sha1; m_sha1 = src.m_sha1; // don't copy creators m_creator = null; }
public hash_collection(hash_collection src) { copyfrom(src); }