mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't copy datagram payload
This commit is contained in:
parent
0b1cfb2102
commit
329439d0ae
4 changed files with 52 additions and 17 deletions
|
@ -2,6 +2,7 @@
|
|||
#define GZIP_H__
|
||||
|
||||
#include <zlib.h>
|
||||
#include <vector>
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
|
@ -34,6 +35,7 @@ namespace data
|
|||
|
||||
void SetCompressionLevel (int level);
|
||||
size_t Deflate (const uint8_t * in, size_t inLen, uint8_t * out, size_t outLen);
|
||||
size_t Deflate (const std::vector<std::pair<const uint8_t *, size_t> >& bufs, uint8_t * out, size_t outLen);
|
||||
|
||||
private:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue