don't invoke gzip for decompression if no compression

This commit is contained in:
orignal 2020-05-19 10:48:23 -04:00
parent 9fb59e128b
commit 3db4421aa7
2 changed files with 44 additions and 13 deletions

View file

@ -128,5 +128,20 @@ inline void htole64buf(void *buf, uint64_t big64)
htobuf64(buf, htole64(big64));
}
inline uint16_t bufle16toh(const void *buf)
{
return le16toh(buf16toh(buf));
}
inline uint32_t bufle32toh(const void *buf)
{
return le32toh(buf32toh(buf));
}
inline uint64_t bufle64toh(const void *buf)
{
return le64toh(buf64toh(buf));
}
#endif // I2PENDIAN_H__