don't invoke gzip for decompression if no compression
This commit is contained in:
@@ -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__
|
||||
|
||||
|
Reference in New Issue
Block a user