src/core/model/hash-implementation.h
branchhash
changeset 9930 0268fa8576c0
parent 9929 3e8510caf03a
equal deleted inserted replaced
9929:3e8510caf03a 9930:0268fa8576c0
    58    * \param [in] buffer pointer to the beginning of the buffer
    58    * \param [in] buffer pointer to the beginning of the buffer
    59    * \param [in] size length of the buffer, in bytes
    59    * \param [in] size length of the buffer, in bytes
    60    * \return 64-bit hash of the buffer
    60    * \return 64-bit hash of the buffer
    61    */
    61    */
    62   virtual Hash64_t  GetHash64  (const char * buffer, const size_t size);
    62   virtual Hash64_t  GetHash64  (const char * buffer, const size_t size);
       
    63   /**
       
    64    * Restore initial state
       
    65    */
       
    66   virtual void clear (void) = 0;
    63   /*
    67   /*
    64    * Destructor
    68    * Destructor
    65    */
    69    */
    66   virtual ~HashImplementation () {} ;
    70   virtual ~HashImplementation () {} ;
    67 };  // HashImplementation
    71 };  // HashImplementation