26namespace matrix_science {
117 ms_zip(
const bool isZipped,
const unsigned char * buffer,
const unsigned long len);
120 ms_zip(
const bool isZipped,
const std::string & buffer);
123 explicit ms_zip(
const bool isZipped);
129 void copyFrom(
const ms_zip* right);
138 std::string compressMore(
const std::string& dataIn);
141 void compressMore(
const unsigned char *dataIn,
const unsigned long inputLen,
unsigned char *dataOut,
unsigned long *outputLen);
144 std::string decompressMore(
const std::string &dataIn);
147 void decompressMore(
const unsigned char *dataIn,
const unsigned long inputLen,
unsigned char *dataOut,
unsigned long *outputLen);
150 unsigned long getZipped(
unsigned char * buffer,
const unsigned long len)
const;
153 unsigned long getUnZipped(
unsigned char * buffer,
const unsigned long len)
const;
156 std::string getZipped()
const;
159 std::string getUnZipped()
const;
162 unsigned long getZippedLen()
const;
165 unsigned long getUnZippedLen()
const;
167 enum { MAX_UNCOMPRESSED_SIZE = (1024 * 1024 * 100), MAX_COMPRESSED_SIZE = (1024 * 1024 * 100) };
169 void init_buffer(
const bool isZipped,
const unsigned char * buffer,
const unsigned long len);
170 unsigned long zippedLen_;
171 unsigned long zippedCap_;
172 unsigned long maxZippedCap_;
173 unsigned long maxUnZippedCap_;
174 unsigned long unZippedLen_;
175 unsigned long unZippedCap_;
176 unsigned char * pUnZipped_;
177 unsigned char * pZipped_;
178 void* pInStreamData_;
179 void* pOutStreamData_;
181 typedef std::basic_string<unsigned char> ustring;
182 std::list<ustring> outputQueue_;
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
Utility class for compressing and decompressing data in compress format, and compressing in gzip form...
Definition: ms_zip.hpp:114
ms_zip & operator=(const ms_zip &right)
C++ style assignment operator.