mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
GzipNoCompression witout zlib calls
This commit is contained in:
parent
e301387896
commit
1eead0e885
3 changed files with 25 additions and 7 deletions
|
@ -3,8 +3,10 @@
|
|||
|
||||
#include <zlib.h>
|
||||
|
||||
namespace i2p {
|
||||
namespace data {
|
||||
namespace i2p
|
||||
{
|
||||
namespace data
|
||||
{
|
||||
class GzipInflator
|
||||
{
|
||||
public:
|
||||
|
@ -38,6 +40,9 @@ namespace data {
|
|||
z_stream m_Deflator;
|
||||
bool m_IsDirty;
|
||||
};
|
||||
|
||||
size_t GzipNoCompression (const uint8_t * in, uint16_t inLen, uint8_t * out, size_t outLen); // for < 64K
|
||||
|
||||
} // data
|
||||
} // i2p
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue