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 --- algparam.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'algparam.h') diff --git a/algparam.h b/algparam.h index 2f20dd8..6a24298 100644 --- a/algparam.h +++ b/algparam.h @@ -17,7 +17,7 @@ public: { Assign((const byte *)data, data ? strlen(data) : 0, deepCopy); } - ConstByteArrayParameter(const byte *data, unsigned int size, bool deepCopy = false) + ConstByteArrayParameter(const byte *data, size_t size, bool deepCopy = false) { Assign(data, size, deepCopy); } @@ -27,7 +27,7 @@ public: Assign((const byte *)string.data(), string.size(), deepCopy); } - void Assign(const byte *data, unsigned int size, bool deepCopy) + void Assign(const byte *data, size_t size, bool deepCopy) { if (deepCopy) m_block.Assign(data, size); @@ -41,12 +41,12 @@ public: const byte *begin() const {return m_deepCopy ? m_block.begin() : m_data;} const byte *end() const {return m_deepCopy ? m_block.end() : m_data + m_size;} - unsigned int size() const {return m_deepCopy ? m_block.size() : m_size;} + size_t size() const {return m_deepCopy ? m_block.size() : m_size;} private: bool m_deepCopy; const byte *m_data; - unsigned int m_size; + size_t m_size; SecByteBlock m_block; }; @@ -60,11 +60,11 @@ public: byte *begin() const {return m_data;} byte *end() const {return m_data + m_size;} - unsigned int size() const {return m_size;} + size_t size() const {return m_size;} private: byte *m_data; - unsigned int m_size; + size_t m_size; }; class CRYPTOPP_DLL CombinedNameValuePairs : public NameValuePairs -- cgit v1.2.1