Пример #1
0
            }                                                                                                                                //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;
            }
Пример #2
0
 public hash_collection(hash_collection src)
 {
     copyfrom(src);
 }