summaryrefslogtreecommitdiff
path: root/zdeflate.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 /zdeflate.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 'zdeflate.h')
-rw-r--r--zdeflate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/zdeflate.h b/zdeflate.h
index e53a3df..8bbd14e 100644
--- a/zdeflate.h
+++ b/zdeflate.h
@@ -37,7 +37,7 @@ public:
HuffmanEncoder(const unsigned int *codeBits, unsigned int nCodes);
void Initialize(const unsigned int *codeBits, unsigned int nCodes);
- static void GenerateCodeLengths(unsigned int *codeBits, unsigned int maxCodeBits, const unsigned int *codeCounts, unsigned int nCodes);
+ static void GenerateCodeLengths(unsigned int *codeBits, unsigned int maxCodeBits, const unsigned int *codeCounts, size_t nCodes);
void Encode(LowFirstBitWriter &writer, value_t value) const;
@@ -70,12 +70,12 @@ public:
int GetLog2WindowSize() const {return m_log2WindowSize;}
void IsolatedInitialize(const NameValuePairs &parameters);
- 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);
protected:
virtual void WritePrestreamHeader() {}
- virtual void ProcessUncompressedData(const byte *string, unsigned int length) {}
+ virtual void ProcessUncompressedData(const byte *string, size_t length) {}
virtual void WritePoststreamTail() {}
enum {STORED = 0, STATIC = 1, DYNAMIC = 2};
@@ -83,7 +83,7 @@ protected:
void InitializeStaticEncoders();
void Reset(bool forceReset = false);
- unsigned int FillWindow(const byte *str, unsigned int length);
+ unsigned int FillWindow(const byte *str, size_t length);
unsigned int ComputeHash(const byte *str) const;
unsigned int LongestMatch(unsigned int &bestMatch) const;
void InsertString(unsigned int start);