From 50f1f5fc8bdd29f9435eca3239af3282fd9ac1f8 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 26 Sep 2016 04:08:26 -0400 Subject: [PATCH] Updated documentation --- filters.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/filters.h b/filters.h index 1336aad7..525712fa 100644 --- a/filters.h +++ b/filters.h @@ -351,14 +351,18 @@ public: void ForceNextPut(); protected: - bool DidFirstPut() {return m_firstInputDone;} + bool DidFirstPut() const {return m_firstInputDone;} + size_t GetFirstPutSize() const {return m_firstSize;} + size_t GetBlockPutSize() const {return m_blockSize;} + size_t GetLastPutSize() const {return m_lastSize;} virtual void InitializeDerivedAndReturnNewSizes(const NameValuePairs ¶meters, size_t &firstSize, size_t &blockSize, size_t &lastSize) {CRYPTOPP_UNUSED(parameters); CRYPTOPP_UNUSED(firstSize); CRYPTOPP_UNUSED(blockSize); CRYPTOPP_UNUSED(lastSize); InitializeDerived(parameters);} virtual void InitializeDerived(const NameValuePairs ¶meters) {CRYPTOPP_UNUSED(parameters);} // FirstPut() is called if (firstSize != 0 and totalLength >= firstSize) - // or (firstSize == 0 and (totalLength > 0 or a MessageEnd() is received)) + // or (firstSize == 0 and (totalLength > 0 or a MessageEnd() is received)). + // inString is m_firstSize in length. virtual void FirstPut(const byte *inString) =0; // NextPut() is called if totalLength >= firstSize+blockSize+lastSize virtual void NextPutSingle(const byte *inString)