mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't invoke gzip for decompression if no compression
This commit is contained in:
parent
9fb59e128b
commit
3db4421aa7
2 changed files with 44 additions and 13 deletions
|
@ -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__
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue