summaryrefslogtreecommitdiff
path: root/algparam.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2005-07-12 04:23:32 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2005-07-12 04:23:32 +0000
commitd5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 (patch)
tree4b03760892a97a9bc452ebe8b7793bbebd402ad4 /algparam.h
parentfa39f51809b4da54a5c2adb3e183b1a625cefb92 (diff)
downloadcryptopp-d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47.tar.gz
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
Diffstat (limited to 'algparam.h')
-rw-r--r--algparam.h12
1 files changed, 6 insertions, 6 deletions
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