|
|
@ -6,7 +6,6 @@ |
|
|
|
#include <string> |
|
|
|
#include <string> |
|
|
|
#include <zlib.h> |
|
|
|
#include <zlib.h> |
|
|
|
#include <iostream> |
|
|
|
#include <iostream> |
|
|
|
#include <sstream> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace i2p |
|
|
|
namespace i2p |
|
|
|
{ |
|
|
|
{ |
|
|
@ -105,7 +104,7 @@ namespace data |
|
|
|
size_t Inflate (const uint8_t * in, size_t inLen, uint8_t * out, size_t outLen); |
|
|
|
size_t Inflate (const uint8_t * in, size_t inLen, uint8_t * out, size_t outLen); |
|
|
|
bool Inflate (const uint8_t * in, size_t inLen, std::ostream& s); |
|
|
|
bool Inflate (const uint8_t * in, size_t inLen, std::ostream& s); |
|
|
|
// return true when finshed or error, s failbit will be set in case of error
|
|
|
|
// return true when finshed or error, s failbit will be set in case of error
|
|
|
|
void Inflate (std::stringstream& in, std::ostream& out); |
|
|
|
void Inflate (std::istream& in, std::ostream& out); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
|
|
|
|