summaryrefslogtreecommitdiff
path: root/src/Piece.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-02-11 08:33:58 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-02-11 08:33:58 +0000
commit4354c674abf0bc6b66b88f5f7d0be21b66fc4cd0 (patch)
treef7dc6e45b06e3db08c80494c694b5f0f476beab0 /src/Piece.h
parent91127ed864bb6aad0f1f5e12db07d826c660ae5e (diff)
2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Destroyed digest context after getting calculated hash. * src/Piece.cc * src/Piece.h
Diffstat (limited to 'src/Piece.h')
-rw-r--r--src/Piece.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Piece.h b/src/Piece.h
index af2a7a92..02cdeb87 100644
--- a/src/Piece.h
+++ b/src/Piece.h
@@ -164,8 +164,10 @@ public:
bool isHashCalculated() const;
- // Returns hash value in ASCII hexadecimal form.
- // WARN: This function must be called only once.
+ // Returns hash value in ASCII hexadecimal form, which is calculated
+ // by updateHash(). Please note that this function returns hash
+ // value only once. Second invocation without updateHash() returns
+ // empty string.
std::string getHashString();
void destroyHashContext();