diff options
author | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
commit | 1db8ea50840eb47f0f7d8f3c30d8e0916932ce90 (patch) | |
tree | 4b03760892a97a9bc452ebe8b7793bbebd402ad4 /basecode.cpp | |
parent | 31068bd68590654dc218bbb183a2ca71bb4af08b (diff) | |
download | cryptopp-git-1db8ea50840eb47f0f7d8f3c30d8e0916932ce90.tar.gz |
port to MSVC .NET 2005 beta 2
Diffstat (limited to 'basecode.cpp')
-rw-r--r-- | basecode.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basecode.cpp b/basecode.cpp index e439e108..0c98b227 100644 --- a/basecode.cpp +++ b/basecode.cpp @@ -36,7 +36,7 @@ void BaseN_Encoder::IsolatedInitialize(const NameValuePairs ¶meters) m_outBuf.New(m_outputBlockSize); } -unsigned int BaseN_Encoder::Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking) +size_t BaseN_Encoder::Put2(const byte *begin, size_t length, int messageEnd, bool blocking) { FILTER_BEGIN; while (m_inputPosition < length) @@ -121,7 +121,7 @@ void BaseN_Decoder::IsolatedInitialize(const NameValuePairs ¶meters) m_outBuf.New(m_outputBlockSize); } -unsigned int BaseN_Decoder::Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking) +size_t BaseN_Decoder::Put2(const byte *begin, size_t length, int messageEnd, bool blocking) { FILTER_BEGIN; while (m_inputPosition < length) @@ -202,7 +202,7 @@ void Grouper::IsolatedInitialize(const NameValuePairs ¶meters) m_counter = 0; } -unsigned int Grouper::Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking) +size_t Grouper::Put2(const byte *begin, size_t length, int messageEnd, bool blocking) { FILTER_BEGIN; if (m_groupSize) @@ -215,7 +215,7 @@ unsigned int Grouper::Put2(const byte *begin, unsigned int length, int messageEn m_counter = 0; } - unsigned int len; + size_t len; FILTER_OUTPUT2(2, len = STDMIN(length-m_inputPosition, m_groupSize-m_counter), begin+m_inputPosition, len, 0); m_inputPosition += len; |