Add const GetStream() member function

pull/416/head
Jeffrey Walton 2017-05-02 18:25:58 -04:00
parent 554b7a2747
commit ca9e788fbf
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 4 additions and 0 deletions

View File

@ -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;