diff options
| author | zyp <zyp@localhost> | 2006-10-19 17:11:00 +0200 | 
|---|---|---|
| committer | zyp <zyp@localhost> | 2006-10-19 17:11:00 +0200 | 
| commit | f93b71da9bcd01d7c1db797d9a84b95cbdabde0b (patch) | |
| tree | dc16b47633ed53653ad7697a5785f05aaf0cb21a /src/hash.h | |
| parent | 77e467c9bae74863016e028008290e5f6fd1bca3 (diff) | |
[project @ zyp-20061019151100-032626b43d2f238b]
[project @ 59]
Added hash_file-function.
Diffstat (limited to 'src/hash.h')
| -rw-r--r-- | src/hash.h | 4 | 
1 files changed, 3 insertions, 1 deletions
@@ -13,15 +13,17 @@ namespace Multihash {  		private:  			std::string digest_str;  			Hash* next; -			void _update(const char* data, int length);  		protected:  			virtual void hash_update(const char* data, int length);  			virtual std::string hash_digest();  		public:  			Hash(Hash* n = 0);  			void update(std::string data); +			void _update(const char* data, int length);  			std::string digest();  	}; +	 +	void _hash_file(int fileno, Hash* hash);  }  #endif // _HASH_H_  | 
