From d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 12 Jul 2005 04:23:32 +0000 Subject: port to MSVC .NET 2005 beta 2 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@198 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- files.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files.h') diff --git a/files.h b/files.h index baa57a3..d98d4b6 100644 --- a/files.h +++ b/files.h @@ -30,10 +30,10 @@ public: std::istream* GetStream() {return m_stream;} - unsigned long MaxRetrievable() const; - unsigned int TransferTo2(BufferedTransformation &target, unsigned long &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true); - unsigned int CopyRangeTo2(BufferedTransformation &target, unsigned long &begin, unsigned long end=ULONG_MAX, const std::string &channel=NULL_CHANNEL, bool blocking=true) const; - unsigned long Skip(unsigned long skipMax=ULONG_MAX); + lword MaxRetrievable() const; + size_t TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true); + size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=NULL_CHANNEL, bool blocking=true) const; + lword Skip(lword skipMax=ULONG_MAX); private: void StoreInitialize(const NameValuePairs ¶meters); @@ -41,7 +41,7 @@ private: member_ptr m_file; std::istream *m_stream; byte *m_space; - unsigned int m_len; + size_t m_len; bool m_waiting; }; @@ -84,7 +84,7 @@ public: std::ostream* GetStream() {return m_stream;} void IsolatedInitialize(const NameValuePairs ¶meters); - unsigned int Put2(const byte *inString, unsigned int length, int messageEnd, bool blocking); + size_t Put2(const byte *inString, size_t length, int messageEnd, bool blocking); bool IsolatedFlush(bool hardFlush, bool blocking); private: -- cgit v1.2.1