diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-05-02 18:25:58 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-05-02 18:25:58 -0400 |
commit | ca9e788fbfada9c47cb1933c10ddf8d4c8b746c9 (patch) | |
tree | 9d1f07f9de7541c07e3ed9c46477efc830b3d536 /files.h | |
parent | 554b7a2747178c4c6cff621c7093d1b24bf29a5c (diff) | |
download | cryptopp-git-ca9e788fbfada9c47cb1933c10ddf8d4c8b746c9.tar.gz |
Add const GetStream() member function
Diffstat (limited to 'files.h')
-rw-r--r-- | files.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -59,6 +59,10 @@ public: //! \returns the internal stream pointer
std::istream* GetStream() {return m_stream;}
+ //! \brief Retrieves the internal stream
+ //! \returns the internal stream pointer
+ const std::istream* GetStream() const {return m_stream;}
+
lword MaxRetrievable() const;
size_t TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true);
size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true) const;
|